Python without a tty

Martin P. Hellwig martin.hellwig at gmail.com
Thu Sep 29 10:25:40 EDT 2011


On 29/09/2011 10:21, Steven D'Aprano wrote:
> I have a Python script which I would like to test without a tty attached
> to the process. I could run it as a cron job, but is there an easier way?
>
> I am running Linux.
>
>
>
Well you could double fork and drop the parent, that would lose the tty
which is the same effect what you get when you want a daemon.

-- 
mph



More information about the Python-list mailing list