LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 09: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, 10: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, 03:07 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
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



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

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

All times are GMT -5. The time now is 09:19 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
Open Source Consulting | Domain Registration