LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-13-2016, 11:14 AM   #1
arun natarajan
Member
 
Registered: Jun 2014
Posts: 108

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


Hi,

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 11:16 AM.
 
Old 04-13-2016, 11:26 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,339

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
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 - https://www.rackaid.com/blog/linux-s...al-and-how-to/ or start your background job from crontab.
 
Old 04-13-2016, 01:44 PM   #3
thllgo
Member
 
Registered: Sep 2003
Location: Laurel MD
Posts: 294

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.
  


Reply


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 10:26 AM
Background job won't stay in the background! JMJ_coder Linux - General 1 03-17-2008 06:05 PM
Background job problem in RedHat 7.2 bnbguy Linux - General 3 05-23-2007 05:03 PM
Background job output jake2 Slackware 6 07-09-2006 10:37 PM
how to stop background job jax8 Linux - Newbie 6 02-17-2004 12:59 AM


All times are GMT -5. The time now is 02:28 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration