chris01010
Programmer
Morning,
i'm currently having trouble when passing a value into a variable from another file. I am currently using the below example:
The line I am trying to pass has a space delimiter (and is actually a command to be executed), unfortunately the variable only gets set with the first part of the line.
e.g.
the line acutally reads
/usr/local/function stop
but the variable is passed only
/usr/local/function
Any ideas how to get round this?
Cheers
Chris
i'm currently having trouble when passing a value into a variable from another file. I am currently using the below example:
Code:
function Command
{
for command in `cat proclst.tmp`
do
set $command
exec $command
done
}
e.g.
the line acutally reads
/usr/local/function stop
but the variable is passed only
/usr/local/function
Any ideas how to get round this?
Cheers
Chris