LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-06-2008, 11:38 PM   #1
nagabioinfo
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Rep: Reputation: 0
Cool listing background jobs


hey all,

I am running a job in background in a remote cluster. And I rebooted my machine, I login again to the remote machine and entered "jobs", but there is no job to list, but when I "top", I can see my job is running. How can I list it now to bring it foreground.

naga
 
Old 03-07-2008, 07:36 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,112
Blog Entries: 54

Rep: Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784
If it's started from the shell (as opposed to a process that's intended to run daemonised), then logging out and back in means the shell ditched the contents of its jobs table ('help disown') and you can't. Next time run 'screen', start the job from there in the foreground, detach screen, logout. Next time you log in and call up your existing screen session the job will be accessable if it's still running.
 
Old 03-08-2008, 12:17 AM   #3
nagabioinfo
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Original Poster
Rep: Reputation: 0
hey thanks for the reply, i will use the screen next time, but is there any way I can bring my current job to foreground !!!
 
Old 03-08-2008, 04:09 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,112
Blog Entries: 54

Rep: Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784
So you didn't read the first line of my reply.
 
Old 03-09-2008, 06:58 AM   #5
nagabioinfo
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Original Poster
Rep: Reputation: 0
i read it..!! so nothing can be done to currently running job ?
 
Old 03-09-2008, 07:05 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,112
Blog Entries: 54

Rep: Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784Reputation: 2784
If it's disowned, no, AFAIK not.
 
Old 03-09-2008, 11:42 PM   #7
nagabioinfo
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Original Poster
Rep: Reputation: 0
k thanks for ur reply..! i will take care in future !!
 
  


Reply

Tags
background


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ran 4 background jobs some have +/- what does that mean? CD_TOASTER Linux - Newbie 1 05-25-2007 04:39 AM
Background jobs tolano Linux - General 4 04-17-2007 04:52 PM
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
background jobs seize630 Linux - General 6 10-14-2003 03:16 PM


All times are GMT -5. The time now is 08:04 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