<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It doesn't appear so to me.<br>
<br>
[steve@sylar ~]$ tty<br>
/dev/pts/16<br>
[steve@sylar ~]$ setsid tty<br>
/dev/pts/16<br>
<br>
[steve@sylar ~]$ python -c "import sys,os; print os.isatty(sys.stdout.fileno())"<br>
True<br>
[steve@sylar ~]$ setsid python -c "import sys,os; print os.isatty(sys.stdout.fileno())"<br>
True<br>
<br>
<br>
If I run the same Python command (without the setsid) as a cron job, I<br>
get False emailed to me. That's the effect I'm looking for.<br>
<font color="#888888"><br></font></blockquote><div><br>Maybe nohup is what you looking for?<br><br>From the info pages...<br><br>"`nohup' runs the given COMMAND with hangup signals ignored, so that the<br>command can continue running in the background after you log out.<br>
Synopsis:<br><br>     nohup COMMAND [ARG]...<br><br>   If standard output is a terminal, it is redirected so that it is<br>appended to the file `nohup.out'; if that cannot be written to, it is<br>appended to the file `$HOME/nohup.out'.  If that cannot be written to,<br>
the command is not run.  If standard output is not a terminal, then the<br>standard output of COMMAND will be the same as that of `nohup'.<br><br>"<br> <br>Regards<br>Bradley<br></div></div>