LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-14-2007, 09:43 PM   #1
noir911
Member
 
Registered: Apr 2004
Location: Baltimore, MD
Posts: 681

Rep: Reputation: Disabled
background process popping up in foreground


I am running bash v3.2.17 and when I try to run a process like fetchmail in the background (fetchmail &) it just pops up in the foreground saying how many messages it is downloading and if I hit the return key I get the shell prompt for a second and then fetchmail pops up again - is there any way to put the process in the background permanently until the job is done?
 
Old 12-14-2007, 11:53 PM   #2
wit_273
Member
 
Registered: Mar 2007
Location: Nebraska
Distribution: CentOS
Posts: 82

Rep: Reputation: 15
The output of some commands are still to the standard output even when ran in the background. You can usually resolve this by specifying and output file.

To output to a file
Code:
fetchmail > ./filename &
or to discard the output
Code:
fetchmail > /dev/null &

Last edited by wit_273; 12-14-2007 at 11:54 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Foreground and Background program switching isolvesystems Linux - Newbie 2 10-03-2007 09:30 AM
Can Linux run in background with Win at foreground achtung_linux Linux - General 5 02-10-2007 08:54 PM
How to bring a background diamon to foreground lieuquocdat Linux - Software 8 07-20-2006 06:53 AM
Background and Foreground Datamike Linux - Software 2 01-20-2006 04:20 PM
tty background/foreground color neo77777 Linux - General 10 08-18-2002 03:53 PM


All times are GMT -5. The time now is 01:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration