[Tutor] Python Daemon

Kalle Svensson kalle@gnupung.net
Mon, 12 Mar 2001 02:19:10 +0100


Sez Tim Johnson:
> I'll add to what Dierdre said:
> 	The ampersand (I believe) will
> only run the process in the background of the
> terminal that is open. 

Trust me, for I have tested:  It may Depend, but in my environment I have no
problem keeping it alive.  On another system, with another shell, you may
well be right.  YMMV.

Using bash 2.04.0(1)-release on Debian GNU/Linux unstable:
Run your script in one shell (an xterm, for example), put it in the
background.
Start another shell, run "ps ax" to find the process.
Log out of the first shell.
Run "ps ax" again.

All your daemons are belong to us,
  Kalle
-- 
Email: kalle@gnupung.net     | You can tune a filesystem, but you
Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
 [ Not signed due to lossage.  Blame Microsoft Outlook Express. ]