ssh+background process in script

Gordon Messmer yinyang at eburg.com
Sun Nov 23 18:37:46 UTC 2008


hari krishna angadi wrote:
> $ vim myscript.sh
> ./Pgm &
> 
> $ /usr/bin/ssh -x -n -o BatchMode=yes 127.0.0.1 cd /home/tom/Test_Dir/ 
> '&&' ./myscript.sh
> 
> If i run this command hello world is not printed.
> If i run this same in FC2 hello world in printed.
> 
> *Whether there is solution to this or it is a bug of FC8?*

The obvious solution would be to not run "./Pgm" in the background.  Why 
are you doing that?




More information about the fedora-list mailing list