ron <vacor...@gmail.com> writes: > On Sep 29, 5:21 am, Steven D'Aprano <steve > +comp.lang.pyt...@pearwood.info> 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? > > Have you tried GNU Screen? It let's you run processes under virtual > terminals, which can then be backgrounded, reconnected to, etc. I > think it comes with most linux distros.
That would not satisfy the “without a TTY attached” requirement. GNU Screen's main goal is to *provide* an attached TTY to multiple processes when the TTY isn't interacting with the user. I don't know whether Screen can *remove* a TTY from a process, and it would be strange to me if it did so. -- \ “I have yet to see any problem, however complicated, which, | `\ when you looked at it in the right way, did not become still | _o__) more complicated.” —Paul Anderson | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list