tmux
Ctrl + b d
tmux a
With screen you can create one or more sessions in your current SSH terminal which allows you to leave them (and the commands running) in the background should you disconnect from your session.
Just run screen to start it. This creates a screen session or window (although you don't see it as such) in your current SSH terminal:
Press Space or Return to get to the command prompt:
| /* | |
| |-------------------------------------------------------------------------- | |
| | PurgeOldEmails | |
| |-------------------------------------------------------------------------- | |
| | https://gist.github.com/benbjurstrom/00cdfdb24e39c59c124e812d5effa39a | |
| | | |
| */ | |
| // Purge messages automatically after how many days? | |
| var DELETE_AFTER_DAYS = 7 |
| #!/bin/bash | |
| find /public_html/application/logs/log*.php -mtime +7 -exec rm {} \; |