LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Background job won't stay in the background! (https://www.linuxquestions.org/questions/linux-general-1/background-job-wont-stay-in-the-background-628786/)

JMJ_coder 03-17-2008 05:59 PM

Background job won't stay in the background!
 
Hello,

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.

Code:

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

Code:

% 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?

sundialsvcs 03-17-2008 06:05 PM

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


All times are GMT -5. The time now is 02:35 AM.