Skip to content

Instantly share code, notes, and snippets.

@supriya-gdptl
Last active April 30, 2019 13:41
Show Gist options
  • Save supriya-gdptl/db321613b87a5434f27c93e0c55cb91e to your computer and use it in GitHub Desktop.
Save supriya-gdptl/db321613b87a5434f27c93e0c55cb91e to your computer and use it in GitHub Desktop.
create screen session with custom filename
screen -dmS test_screen_name
screen -S test_screen_name -X logfile name_of_logfile.txt
screen -S test_screen_name -X log
screen -r test_screen_name
[source: https://superuser.com/questions/766903/how-to-set-the-gnu-screen-log-file-name-non-interactively]
# To find the owner name of process
ps -u -p <pid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment