LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2014, 01:55 PM   #1
linuxmarble
Member
 
Registered: Aug 2014
Location: Deutschland
Distribution: Kali Linux
Posts: 44

Rep: Reputation: Disabled
Running a program in the background how ???


Good Day

So how would I run Amarok in the background ,, using this command ??? ogg123 *.ogg >/dev/null 2>music_err &

I tried it and it did not work ,,, this is how i ran the command

Amarok *.flv >/dev/null 2>music_err & did not work
 
Old 09-05-2014, 05:14 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
What did not work exactly?
 
Old 09-06-2014, 08:29 PM   #3
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,176

Rep: Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837Reputation: 837
it doesn't work that way.
amarok is a gui application.
if you want to run some media without any interface, try mplayer.
btw, the *.ogg or *.flv (variable expansion) might not work with some players.
you might have to use a bash oneliner like this:
Code:
for i in *ogg ; do ogg123 "$i" ; done
that would run all ogg files in the directory one after the other.
 
1 members found this post helpful.
Old 09-07-2014, 05:23 AM   #4
linuxmarble
Member
 
Registered: Aug 2014
Location: Deutschland
Distribution: Kali Linux
Posts: 44

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by ondoho View Post
it doesn't work that way.
amarok is a gui application.
if you want to run some media without any interface, try mplayer.
btw, the *.ogg or *.flv (variable expansion) might not work with some players.
you might have to use a bash oneliner like this:
Code:
for i in *ogg ; do ogg123 "$i" ; done
that would run all ogg files in the directory one after the other.
Thanks for both of u

I will try it and give an update

many thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running program in the background HarryBoy Programming 2 06-12-2008 12:42 PM
Running C Program in Background help ibshar Linux - Newbie 7 10-04-2007 03:41 PM
Running a program as a background daemon? Vor Kragresh Slackware 8 04-20-2007 11:48 AM
running a program in background of X using & Dachy Linux - General 1 09-13-2005 12:38 PM
running rsync from a background c program BassJunkie Programming 2 08-26-2005 06:38 AM


All times are GMT -5. The time now is 11:00 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration