How to terminate screen from bash script?
Bo Berglund
bo.berglund at gmail.com
Wed Jul 20 06:08:24 UTC 2022
On Tue, 19 Jul 2022 22:35:54 +0100, Aero Maxx D <aero.maxx.d at gmail.com> wrote:
>> So is there a way to finish a script running in screen with a screen termination
>> command (exit) such that it will terminate the screen in which it runs?
>>
>
>You could try using screen like this command
>
>screen -d -m <your command here>
Thanks,
this worked but with a slightly different sequence:
- No longer enter screen manually
- Use the command you gave to start the screen session with my command running
and stay in the main terminal
- I did not use the ; exit at the end anymore
- The video conversion started OK
- At the end of the script the screen terminated
So this is really an improvement on my job sequence!
Thanks again!
Now I have created an alias for 'screen -d -m' so it will be even simpler to
use.
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list