|
Posted by Christoph Burschka on 01/18/07 07:23
I tried to run several shell commands with system() in the same script,
but noticed that things like variables and current location don't carry
over between them. Essentially, each system() call starts a new thread.
Is there any way to make this persistent, that is, to have this:
system("variable='Hello World'");
....
system('echo $variable');
print out "Hello World"?
Preferably short of having to put it all into a single call like this:
system('variable="Hello World";echo $variable');
--
CB
Navigation:
[Reply to this message]
|