LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-12-2003, 09:12 AM   #1
Onyx2316
LQ Newbie
 
Registered: Nov 2003
Posts: 1

Rep: Reputation: 0
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.
 
Old 11-12-2003, 11:49 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
You could use "at"

at now
<command>
ctrl-d
 
Old 02-27-2012, 04:12 AM   #3
taepodong1101
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
for search engines

deleted.

Last edited by taepodong1101; 02-27-2012 at 04:15 AM.
 
Old 02-28-2012, 12:10 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,247

Rep: Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025Reputation: 2025
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kill all Background Jobs jwprz70 Linux - Newbie 10 05-12-2010 01:29 AM
running jobs on the background feetyouwell Linux - Software 3 08-02-2005 10:36 AM
Background jobs paddyjoy Linux - Newbie 2 07-19-2005 01:46 AM
nohup not preventing jobs from getting killed TrulyTessa Linux - Newbie 4 12-24-2004 11:39 AM
background jobs seize630 Linux - General 6 10-14-2003 03:16 PM


All times are GMT -5. The time now is 12:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration