[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forcing screen to stay open after [cmd] is completed...
From: |
Sadrul Habib Chowdhury |
Subject: |
Re: Forcing screen to stay open after [cmd] is completed... |
Date: |
Fri, 19 Aug 2011 20:17:15 -0400 |
On Fri, Aug 19, 2011 at 2:30 AM, Zak Kinion <address@hidden> wrote:
> Hello all,
>
> Basically my goal is:
>
> run screen:
>
> screen -d -m python myscript.py
You can use something like
$ screen -d -m -c zombie python myscript.py
where
$ cat zombie
zombie qp
$
This will keep the terminated window around, so you can attach, and
then press 'q' to close, or 'p' to rerun the script if you wanted to.
Sadrul
> which then moves it into the background. myscript.py also launches
> some other python scripts over time.
>
> However, once myscript.py ends, then all the other scripts are gone
> forever, since the screen closes too. They are not running at all
> under ps aux | grep otherscript.py
>
>
> I CAN just simply go:
>
> screen
>
> and hit enter after the welcome message, and then run: python
> myscript.py and all is well....
>
> However this takes a lot longer and is harder for me to automate for my means.
>
>
> I'm basically looking for one command or argument that I can send to
> screen to have it run:
>
> screen -d -m python myscript.py and NOT die when myscript.py terminates.
>
>
> Thank you
>
> --
> Zak Kinion
> address@hidden
>
> _______________________________________________
> screen-users mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/screen-users
>