[ale] name=value

Eric Z. Ayers eric.ayers at mindspring.com
Fri Jul 16 06:54:49 EDT 1999


You could always try something like

eval $1

and then you would have a variable in your script named 'analog' set
to the value 123.

-Eric.

Bert Hiddink writes:
 > Hello,
 > 
 > I am new on this list and very new on shell scripting.
 > 
 > I have this script:
 > 
 > #!/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
 > 
 > $1 is the variable I need to execute properly the analog32. I works 
 > when I do this through a link from the web f.e.
 > 
 > http://www.mysite.net/cgi-bin/analog.sh?123
 > 
 > where 123 corresponds to the value of $1.
 > 
 > However, now I want to control this through a form f.e.:
 > <INPUT CHECKBOX NAME=analog VALUE=123>
 > The problem is that then not only the value is send to the server but 
 > also the 'name'. So the script receives 'analog=123' instead of 
 > '123'.
 > 
 > I suppose I should do a split once the variable arrives at the script 
 > but I do not know  where to start. Could you help me?
 > 
 > Thanks in advance and best regards,
 > 
 > -brt
 > 
 > 
 >    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