You are not logged in.
Pages: 1
I've got some scripts made that I want to run in the background. However, if I'm SSH'd in, after my session times out, the scripts stop running. How can I make these scripts run until I stop them?
Offline
$ pacman -S screen
$ man screen
run your scripts in the screen and detach screen before logout SSH ( detach-logout keycombo: ctrl-a D D )
Offline
man nohup will tell you what you need.
Or this:
http://www.unet.univie.ac.at/aix/cmds/a … /nohup.htm
Offline
screen is overkill for that (use screen for interactive applications that you need to detach and reattach somewhere else), use nohup instead.
I have a simple bash function for that purpose:
nh() { nohup "$@" &>/dev/null & }
So you just have to run "nh <command>" and it goes in the background, detached from the terminal, without saving the output.
Offline
Thanks guys
Offline
Hey that nohup sounds really nice way. Never too late to learn new things
Offline
Pages: 1