Peter Rait <[EMAIL PROTECTED]> said (on Mon, Jan 21, 2008 at 03:01:55PM +0100): > screen -p $zahl -X eval 'stuff ./run_node.sh" $zahl \015"' > > When looking into the screen window it seems that now only the first > part './run_node.sh' is executed without passing the parameter.
This is a quoting problem - single-quotes are not interpolated. That means: the argument (to the screen command) that is in '...' will not be scanned by the shell (script) for variables (etc) - and will appear empty in this case (since $zahl is not in your environment, perhaps). You need to do something like the following (to get the variable back out of the quoting, so that it will be interpolated): screen -p $zahl -X eval 'stuff ./run_node.sh" '$zahl' \015"' or, for more general such scenarios, a more bullet-proof version would be: screen -p $zahl -X eval 'stuff ./run_node.sh" '"$zahl"' \015"' -- Geraint A. Edwards (aka "Gedge") [EMAIL PROTECTED] _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users