Python without a tty

Thomas Jollans t at jollybox.de
Thu Sep 29 05:45:40 EDT 2011


On 29/09/11 11: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.
> 

./program </dev/null >/dev/null 2>&1




More information about the Python-list mailing list