[ale] More on name=value
Bert Hiddink
hiddink at sipromicro.com
Fri Jul 16 12:52:07 EDT 1999
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
More information about the Ale
mailing list