LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   listing background jobs (http://www.linuxquestions.org/questions/linux-general-1/listing-background-jobs-626325/)

nagabioinfo 03-06-2008 11:38 PM

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

unSpawn 03-07-2008 07:36 AM

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.

nagabioinfo 03-08-2008 12:17 AM

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 !!!

unSpawn 03-08-2008 04:09 AM

So you didn't read the first line of my reply.

nagabioinfo 03-09-2008 06:58 AM

i read it..!! so nothing can be done to currently running job ?

unSpawn 03-09-2008 07:05 AM

If it's disowned, no, AFAIK not.

nagabioinfo 03-09-2008 11:42 PM

k thanks for ur reply..! i will take care in future !!


All times are GMT -5. The time now is 09:34 AM.