On Thursday 15 Oct 2009 3:00:42 pm Vannia Rajan wrote: > > the first one. Or is there some other way (script in /etc/init.d/ for > > example > > to do this elegantly?) > > Running in the screen is the safest and reliable way to keep running a > script after we logout. Steps are: > > (i) type "screen" -- this will create a new screen and you'll be inside the > screen. > (ii) python myserver.py (while you're inside the screen) > (iii) Ctrl + A + d -- will take you out of the screen -detaches screen (but > the screen keeps running and also your script) > (iv) Now, you can logout of the server. Once you return, or anytime you > need to "view" the python process running, you need to RESUME the screen > that is detatched. You can do this by issuing : screen -ls (will list out > all the running screen's PID) > screen -x #PID of screen to resume > > > Note: You can do lot more than just running a single process in the screen. > "man screen" can explore those.
thats what I have been doing - it's ok for one or two scripts, now I find I have to look after a growing number of them -- regards kg http://lawgon.livejournal.com _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
