[Tutor] Python Daemon

Tim Johnson tim@johnsons-web.com
Sun, 11 Mar 2001 15:12:48 -0900


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. 
	However, if I run fetchmail with a -d
switch, then it will still run regardless if I have any
console windows open from X.
	So indeed, the second example is what I'm
looking for.......
On Sun, 11 Mar 2001, Deirdre Saoirse wrote:
> On Mon, 12 Mar 2001, Kalle Svensson wrote:
> 
> > Sez Pedro Diaz Jimenez:
> > > In order to make a daemon, you've got to fork() and kill the father. Then
> > > you have a child in the background
> >
> > That's not true, at least not with my definition of daemon, basically
> > a process that is left running.  Just start the process in the
> > background (with an &, like "python script.py &") and exit the shell.
> > Perhaps with older shells you'll have to run it through nohup or
> > something, but I don't know.
> 
> That doesn't *necessarily* work -- try logging out from that shell
> afterwards. In many cases, it'll be gone. Screen is a workaround, but not
> suitable for a daemon.
> 
> --
> _Deirdre   NEW Stash-o-Matic: http://fuzzyorange.com  http://deirdre.net
> "I love deadlines. I like the whooshing sound they make as they fly by."
>                                                          - Douglas Adams
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Tim Johnson
-----------
"Of all manifestations of power,
 restraint impresses the most."
 -Thucydides