Ricky Robinson
Ricky Robinson

Reputation: 22903

decouple process remotely launched from local machine

I need to ssh to a machine and launch a bash script running some hour-long tests which require no human interaction for their entire execution.

Is there any way I can decouple my running script from my shell, so that I can close the terminal and shut down my local computer as I like?

Upvotes: 0

Views: 359

Answers (1)

cnicutar
cnicutar

Reputation: 182664

Sure, use nohup:

nohup ./program &

Alternatively, start your program inside screen or tmux and then detach.

Upvotes: 3

Related Questions