FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 05-28-2008, 09:52 PM
Kamaraju S Kusumanchi
Default list of all background jobs

Consider the following scenario. I am on machine A.

user1@machineA $ ssh user2@machineB
user2@machineB $ nohup command1 &
user2@machineB $ nohup command2 &

Now if I use the jobs command, I can display the background jobs on this

user2@machineB $ jobs

[1] Running nohup command1 &
[2] Running nohup command2 &

Now if I exit the shell on machineB and come back to machineA.

user2@machineB $ exit
user1@machineA $

After some time (say after a day or so) I log back in to machineB.

user1@machineB $ ssh user2@machineB
user2@machineB $ jobs

then there is no output even though the jobs are being run in the
background. Is there any way to get information about all the jobs being
run in the background that belong to a particular user? In other words is
there any way to display information about [1],[2] jobs in the new shell?

Currently I am using a round about way to achieve this

user2@machineB $ ps aex | grep nohup | gvim -

Is there any better, more elegant solution for this problem?

Kamaraju S Kusumanchi

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Thread Tools

All times are GMT. The time now is 12:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org