[svlug] daemonize a bash script

Brian J. Tarricone bjt23 at cornell.edu
Fri Jun 9 13:30:52 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 6/9/2006 1:01 PM, Tomer wrote:

> If Im ssh'ed to a remote machine as root and want to run a bash script that
> I have in my /root directory and then have it keep running after I
> disconnect my ssh session, what's the best/easiest way to do it?

If you want to be able to ssh back in later to see its output/progress,
I'd suggest using 'screen'.  If not, "nohup /path/to/script &" should do it.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEidp86XyW6VEeAnsRAiZxAJ4sBMxVjNnHhNmpVSO/lyWt1skV+wCeKMXM
zZiZ23R5i/Zu0kahA0VTwZ4=
=XDAY
-----END PGP SIGNATURE-----




More information about the svlug mailing list