LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-07-2008, 02:55 AM   #1
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
Background Job stops when closing shell


greetings.

I am trying to force a process to run in background. I have tried the following options

1) /path/command &
2) /path/command ( press CTRL + Z , type bg )

However, the job remains assigned to the current shell ( ie, the shell which started the process ). When I close/disconnect the shell, the background process stops immediatly.

How can I prevent this please?

Reagrds,

drg
 
Old 03-07-2008, 03:26 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,690

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Nohup is preventing that:
Code:
nohup /path/command </dev/null >/dev/null 2>&1 &
 
Old 03-07-2008, 03:40 AM   #3
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
Nohup is preventing that:
Code:
nohup /path/command </dev/null >/dev/null 2>&1 &
thanks!

drg
 
  


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
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
changing variables from background job bobwall Programming 2 06-18-2005 02:28 PM
Sending a job straight to background detly Linux - General 4 02-02-2005 02:51 AM
how to stop background job jax8 Linux - Newbie 6 02-17-2004 12:59 AM


All times are GMT -5. The time now is 12:08 PM.

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