Created
January 15, 2020 11:04
-
-
Save chasgames/dc1ef5caed8c1ceee5eb9d8e76b6cc37 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
#For cronjob - /usr/bin/tmux new-session -d -s my_session '/bin/bash hello.sh;bash -i' | |
#bash -i, makes bash interactive so the tmux session does not close. | |
tmux new-session -d -s my_session 'bash hello.sh;bash -i' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment