simple rsh and python question

Randy Wadkins rwadkins at flash.net
Thu Nov 14 13:53:07 EST 2002


Is there any way to rsh from a shell script to nodes in a cluster and
execute a python script that will run in the background on each node? 
It appears that the execution is stopped once the rsh command is
completed.

I'm thinking something along the lines of:

for x in node1  node2...(etc.)

do 
  rsh x$ python myscript.py "&"
done

but, the above doesn't really work.  The python job is terminated
before completion.
 
Thanks,
--Randy



More information about the Python-list mailing list