Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-13-2016, 12:14 PM   #1
arun natarajan
Registered: Jun 2014
Posts: 108

Rep: Reputation: Disabled
background job differs in putty and actual server


Am accessing my rhel6 linux server via putty.
When i created a background jobs using putty, it is being listed only in putty and not on actual server.
Hope background job actually runs directly on server without any terminal connection.
Need to know the reason for this.

PFAs for the same.
Attached Thumbnails
Click image for larger version

Name:	s1.jpg
Views:	22
Size:	183.7 KB
ID:	21463   Click image for larger version

Name:	s2.jpg
Views:	19
Size:	252.6 KB
ID:	21464  

Last edited by arun natarajan; 04-13-2016 at 12:16 PM.
Old 04-13-2016, 12:26 PM   #2
Senior Member
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,595

Rep: Reputation: 955Reputation: 955Reputation: 955Reputation: 955Reputation: 955Reputation: 955Reputation: 955Reputation: 955
Using nohup to try and run non-demonizing processes in the background and disconnecting the session can have variable results.

My personal preference would be to make use of a "screen" session - or start your background job from crontab.
Old 04-13-2016, 02:44 PM   #3
Registered: Sep 2003
Location: Laurel MD
Posts: 296

Rep: Reputation: 32
The command "jobs -l" only lists jobs for that user in that terminal. If you login to two different terminals the command will produce two different outputs. What you may wish to do is "ps -elf | grep <string>" where string is what ever you are looking for. So the command "ps -elf |grep root" will list all jobs run by root or have the word root in the command. You could have run the command "ps -elf |grep cat" in the case you listed
1 members found this post helpful.


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
How to process a job in background? k_oudom Linux - Networking 20 02-21-2010 11:26 AM
Background job won't stay in the background! JMJ_coder Linux - General 1 03-17-2008 07:05 PM
Background job problem in RedHat 7.2 bnbguy Linux - General 3 05-23-2007 06:03 PM
Background job output jake2 Slackware 6 07-09-2006 11:37 PM
how to stop background job jax8 Linux - Newbie 6 02-17-2004 01:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:43 PM.

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