LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12: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, 04:14 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
What did not work exactly?
 
Old 09-06-2014, 07:29 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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, 04: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



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 11:42 AM
Running C Program in Background help ibshar Linux - Newbie 7 10-04-2007 02:41 PM
Running a program as a background daemon? Vor Kragresh Slackware 8 04-20-2007 10:48 AM
running a program in background of X using & Dachy Linux - General 1 09-13-2005 11:38 AM
running rsync from a background c program BassJunkie Programming 2 08-26-2005 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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