Reputation: 53
I have a Raspberry Pi running Debian Lite (terminal only, no desktop). I've installed Node.js and am currently running a script by making an SSH connection through puTTY.
The problem is, when I close the puTTY window the script stops running. I need it to run when my desktop is turned off, otherwise having it on the Pi is pointless.
So far I have tried: -Nohup | Appended the output but still stopped running when I closed the terminal.
Upvotes: 1
Views: 608
Reputation: 157947
Multiple options:
Install screen
or tmux
on the PI and start the job with those programs.
(or) Run the job with the nohup
command:
nohup command
(or) Run the job in the background and use disown
:
command &
disown %1
I recommend option 1.
Upvotes: 3