LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-25-2007, 01:04 PM   #1
awalls
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
Jobs started with nohup aborts after closing ssh


I have a user who runs jobs in Flow3d on RedHat Linux enterprise ws4 X86_64. His command line structure is nohup command & . So he is running both nohub and putting it in the background. Standard output and standard error are nohup.out. When he logs out of ssh his job aborts. If any one knows why this is or what can be done about it it would be much appreciated.
 
Old 09-25-2007, 03:11 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Have your user use the screen command to create virtual terminals. Those survive logging out and can be picked back up by next time they log in.
 
Old 09-25-2007, 04:31 PM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Screen is very good for this sort of thing. Plus you can re-connect to a screen session at a later time, even if you log out, and log back in on a different tty. e.g. You wake up, log into work from home using ssh, and start some program in a screen session. You disconnect the screen session from the tty, and drive to work. Then you log into the machine locally, and use "screen -r" to re-connect to the program, at which point you can interact with it again.

Screen rules.
 
Old 09-28-2007, 05:20 AM   #4
awalls
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Yeah I'm using screen as an alternative. I would still like to know why nohup is not working. It used to work fine in earlier distribution's.
 
Old 09-28-2007, 05:26 AM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Yes, it's curious, I would have thought it would work.
 
  


Reply



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
Nohup and Background Jobs Onyx2316 Linux - Newbie 3 02-28-2012 12:10 AM
Recalling jobs started using nohup and "&" RAdams Linux - Software 3 12-21-2006 07:15 AM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 11:36 AM
nohup not preventing jobs from getting killed TrulyTessa Linux - Newbie 4 12-24-2004 11:39 AM
cups aborts print jobs sneak Linux - Software 0 11-09-2004 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration