Created
October 24, 2023 21:45
-
-
Save obfusk/3d16de20dfd7f9a4d50da0efafe80bd6 to your computer and use it in GitHub Desktop.
quit screen session after command finishes successfully
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do_stuff && screen -X -S $( screen -ls | awk '{print $1}' | grep "^$PPID\." ) quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment