Skip to content

Instantly share code, notes, and snippets.

@AdamGagorik
Created June 22, 2023 13:18
Show Gist options
  • Save AdamGagorik/7c8603874ada43b5519d27c3941b6beb to your computer and use it in GitHub Desktop.
Save AdamGagorik/7c8603874ada43b5519d27c3941b6beb to your computer and use it in GitHub Desktop.
#!/bin/bash
echo ""
echo -e "running : screen -ls "
echo -e "start : screen -d -m -S NAME command"
echo -e "stop : screen -X -S NAME quit "
echo -e "attach : screen -r NAME "
if [[ $# -gt 0 ]]; then
echo ""
echo -e "screen $*"
echo ""
screen $*
else
echo ""
echo -e "screen -ls"
echo ""
screen -ls
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment