LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-17-2008, 06:59 PM   #1
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
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?
 
Old 03-17-2008, 07:05 PM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,455

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


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
Background job problem in RedHat 7.2 bnbguy Linux - General 3 05-23-2007 06:03 PM
Background job output jake2 Slackware 6 07-09-2006 11:37 PM
changing variables from background job bobwall Programming 2 06-18-2005 03:28 PM
Sending a job straight to background detly Linux - General 4 02-02-2005 03:51 AM
how to stop background job jax8 Linux - Newbie 6 02-17-2004 01:59 AM


All times are GMT -5. The time now is 07:28 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration