Linked Questions

0
votes
1answer
250 views

Does Killing A Bash Process Affect Children Processes [duplicate]

The Scenario I'm automating backups via a bash script. The script is executed via cron. The script archives directories recursively using tar, and then rsync's them to the remote host. Here is a ...
32
votes
4answers
54k views

Continue SSH background task/jobs when closing SSH

I have the same question as here but even beyond that. If I logout/exit the SSH connection, I need my program running in background. Before exit, I type bg and jobs to check background running task, ...
19
votes
3answers
63k views

Close SSH connection

I'm using Mac's Terminal App and I know how to connect to an external server via ssh (ssh -l username domain.com). But how do I close the connection once I'm done? Thanks.
8
votes
2answers
5k views

Will a job put in background continue running after an SSH session is closed?

I have an AWS instance, and there I some tasks that I need to complete that will take some time. If I run these before commuting to/from work (e.g. wget <someStuff>), then commit it to ...
4
votes
1answer
2k views

Prevent an already running background process from being stopped after closing SSH client

I have a process running on my Linux machine (Debian squeeze) that takes hours (or days) to finish. I don't want to stop it to restart it again with screen, tmux or with an output redirect to nohup. ...
2
votes
4answers
994 views

Background job in bash is shutting down when the firing window is closed: how to avoid this?

You can go quickly to the question starting reading from 'Having said that' The following are details on my specific needs I'm on lubuntu oneiric and trying to create a desktop launcher to start / ...
1
vote
1answer
2k views

Process killed on ssh disconnect despite screen/nohup

I am facing a rather strange situation: ssh to a beaglebone (details : uname -a = "Linux beaglebone 3.2.34 #1 Wed Nov 21 14:17:11 CET 2012 armv7l GNU/Linux", ssh server : Dropbear sshd v2012.55) ...
1
vote
1answer
470 views

How can I start a process over SSH such that it will continue to run after I disconnect?

XBMC occasionally crashes on my media server. It's a pain to bring down the media server because I have to manually restart a number of services each time. I'd like to be ablle to start XBMC from an ...
3
votes
0answers
471 views

Clarification on signals (sighup), jobs, and the controlling terminal

So I've read two different perspectives and I'm trying to figure out which one is right. 1) Some sources online say that signals sent from the controlling terminal are ONLY sent to the foreground ...
0
votes
1answer
39 views

Unable to keep remote job running on OS X

I just got a MacPro and am trying to work remotely on it. But when I ssh into it and start a job, put it in the background, and log out, the job apparently goes to sleep. So when I log back in and ...