LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 05: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, 06:05 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,667
Blog Entries: 4

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:32 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
Open Source Consulting | Domain Registration