LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Nohup and Background Jobs (https://www.linuxquestions.org/questions/linux-newbie-8/nohup-and-background-jobs-115207/)

Onyx2316 11-12-2003 09:12 AM

Nohup and Background Jobs
 
Hi Folks,

I'm hoping someone can help me out with this. I am trying to find out how to SSH to a remote machine, launch irssi (IRC Client), start a connection with a server and then place the prog. in the background and then log off. I would like to then periodically ssh back and check the status of this application.

I know that ctrl-z will place a job in the background and that I can switch between background jobs with the fg command. This however seems to suspend a job thus halting the download from dcc or ftp (if I've used one of these applications and then placed it in the background.) I believe that the job will also quit when I log out of the remote SSH session.

I discovered that "nohup <appname> &" will place a prog. in the background automatically and theoretically should not be affected by logging out of the terminal which I used to issue the command although this seems to not work in practice.

Would anyone know how I can ssh to my box, lauch a prog. that can be placed in the background and remain running even if I quit the session?

Many thanks in advance.

Onyx2316.

iainr 11-12-2003 11:49 AM

You could use "at"

at now
<command>
ctrl-d

taepodong1101 02-27-2012 04:12 AM

for search engines
 
deleted.

chrism01 02-28-2012 12:10 AM

In general
Quote:

I discovered that "nohup <appname> &" will place a prog. in the background automatically and theoretically should not be affected by logging out of the terminal which I used to issue the command although this seems to not work in practice.
works well.
In what way does it not work?

Perhaps the client requires a terminal session to function?

Have you looked at screen http://linux.die.net/man/1/screen as an alternative?


All times are GMT -5. The time now is 01:34 PM.