[Sidefx-houdini-list] Running a script to set variablesfromaC-shell script

Rick Walia rickw at the-mill.com
Mon Feb 27 19:31:51 EST 2006

Robert Persons wrote:

> That would seem to make sense, but I tried it and the variables don't
> get set ... hmmmm
Interesting. I just tried at it works for me.
I have 2 files:

In foo.csh I have:
setenv FOO "this is foo"
set morestuff = "this is more text from foo"

in test.csh I have:
source $HOME/foo.csh
echo $FOO
echo $morestuff

If I chmod a+x foo.csh test.csh and run ./test.csh, the output is:
this is foo
this is more text from foo

hope this helps

Rick Walia

The Mill 

More information about the Sidefx-houdini-list mailing list