LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-03-2014, 10:54 AM   #1
gaurav_s
Member
 
Registered: Jul 2014
Posts: 43

Rep: Reputation: Disabled
Sending running process to background.


Sometimes i need to close the putty session ,but due to some running applications(which takes lot of time to finish)i need to wait for them.
I want to acheive this without using nohup.
I tried disown command also,but it takes job number as argument. I couldn't find the job number of running process,because they are executed directly .

i.e Say application name is Configure.pl and it is executed as ./Configure.pl and it takes lot of time.
 
Old 09-03-2014, 11:02 AM   #2
kkoene
Member
 
Registered: May 2008
Location: Wisconsin
Distribution: Fedora, Ubuntu, RHEL, AIX6
Posts: 33

Rep: Reputation: 0
If you add an "&" at the end of the command it will run in the background.
 
Old 09-03-2014, 04:07 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,158

Rep: Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980Reputation: 2980
What don't you want to use nohup?

Sending a job to the background will not detach it from the shell. disown (a bash built in) will detach a currently running process whereas nohup needs to be used when first running the script.

Other alternatives to nohup are tmux or screen.

How to use the disown command:
http://www.cyberciti.biz/faq/unix-li...-usage-syntax/
 
  


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
cgi script -- sending process to background hd1080 Linux - Software 1 06-10-2012 05:27 AM
sending remote command to background process + out log c0m4r Linux - Newbie 6 02-02-2010 05:34 AM
sending processes to background when they are running a.toraby Programming 3 12-23-2007 07:44 PM
Urgent : Regarding sending a current running process in background Ricky Linux - General 5 11-27-2007 03:07 PM
sending process to background Robert0380 Linux - General 5 12-31-2002 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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