[ale] More on name=value
Wandered Inn
esoteric at denali.atlnet.com
Fri Jul 16 15:32:11 EDT 1999
If you want to send me a copy of the script and the html, I'll take a
look at it and get back to you privately.
Bert Hiddink wrote:
>
> Hello,
>
> Thanks to the help of Geoffrey and Erik, I made the following
> adaptations to my script:
>
> Geoffrey's suggestion:
>
> #!/bin/sh
> echo Content-type:text/html
> echo
>
> /usr/local/bin/analog32 +g/usr/home/coninpym/analog/analog.cfg +F-00-
> 00-${1#*=} +T-00-00-01
>
> When running from the shell:
> ./analog_test.sh analog=15
>
> the above yields to:
> /usr/local/bin/analog32 +g/usr/home/coninpym/analog/analog.cfg +F-00-
> 00-15 +T-00-00-01
>
> This is excactly what I wanted. However, if I put from the web:
>
> http://www.mysite.net/cgi-bin/analog_test.sh?analog=15
>
> the value is not taken into account.
>
> Same for Erik's suggestion:
>
> #!/bin/sh
> echo Content-type:text/html
> echo
>
> eval $1
>
> /usr/local/bin/analog32 +g/usr/home/coninpym/analog/analog.cfg +F-00-
> 00-$analog +T-00-00-01
>
> When running from the shell:
> ./analog_test.sh analog=15
>
> the above yields to:
> /usr/local/bin/analog32 +g/usr/home/coninpym/analog/analog.cfg +F-00-
> 00-15 +T-00-00-01
>
> However, this option does not work from the web neither; the output
> is not printed to the screen.
>
> Any idea why the scripts above work from the shell and not from the
> web?
>
> Bert Hiddink, FUNDACION GALILEO
> Correo electronico: hiddink at sipromicro.com
> Sitio: http://www.sipromicro.com
> Tel. (506) 280 8683, telefax. (506) 280 8847
--
Until later: Geoffrey esoteric at denali.atlnet.com
It should be illegal to yell "Y2K" in a crowded economy.
-- Larry Wall, creator of the programming language Perl
More information about the Ale
mailing list