Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-17-2008, 05:59 PM   #1
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Background job won't stay in the background!


I am using TCSH and rxvt. I wanted to play an ogg file in the background while doing other work. So I issued the command and put it in the background.

% ogg123 musicfile.ogg &
Problem is that ogg123 output takes over the term window.

% ogg123 musicfile.ogg &
[1] 8664
Audio Device:   Advanced Linux Sound Architecture (ALSA) output

Playing: musicfile.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Time: 00:02.11 [6:15.99] of 6:18.11  ( 97.0 kbps)  Output Buffer  93.8%

I thus can't do anything else in that term window, which defeats the whole purpose of putting the job in the background. Any thoughts?
Old 03-17-2008, 06:05 PM   #2
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,725

Rep: Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294Reputation: 1294
Well you could add... >/dev/null 2>&1 to send all of its output into the bit-bucket.


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
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 11:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration