(username) home - cat myscript
setenv vara valuea
setenv varb valueb
/home/user/someexe
(username) home - ./myscript
now the someexe is not able to pick up the environment variables (since
the variables are set in different environment). does someone know any
alternative to this??
Thanks
kannan
What shell? C-type shells (such as tcsh) are not recommended for
scripts, and Bourne-type shells (such as bash or ksh) do not have
a setenv command.
In a Bourne-type shell, one exports variables:
var=val
export val
In bash, this may be shortened to:
export var=val
--
Chris F.A. Johnson
=================================================================
cf...@freeshell.org http://cfaj.freeshell.org