On Aug 7, 2007, at 12:11 PMAug 7, 2007, Rakhesh Sasidharan wrote:


Eric Crist wrote:

Install screen from ports, run it from within screen.

You'll still get disconnected, but you should be able to reconnect after it's done. Screen will allow the script to complete, whereas your ssh session is killing it half/part way through...

HTH


Just curious -- how come screen works in such situations? I recollect someone else too recommending screen a few days ago (instead of "watch" to connect to another terminal) coz it doesn't get cut. The SSH session in which screen runs gets disconnected, but screen still works ... useful!


Screen can detach and run in the background. Processes which start from within screen don't get killed, because, screen, the parent process, is still running. The reason the script dies when you get d/ c'd is that your shell, the parent process, has died.

HTH

Eric Crist
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to