jasona99
Posts: 6
Joined: Wed Aug 07, 2013 3:51 pm

[BASH] Launching programs from a Bash script.

Mon Aug 26, 2013 5:04 am

Hello,
I am trying to launch a file with Omxplayer while launching claws-mail (simultaneously from a Bash script). I have tried numerous commands, but Omxplayer says it can't find the file, while claws-mail launches without any of my settings and also gives an error about not being able to locate a file somewhere in ./root (I can't get the exact message at this time, but I can get it if needed).
Here are some of the lines I have tried in an attempt to make it work:

Code: Select all

omxplayer ./Music/File_Name.mp3 -p & claws-mail

Code: Select all

sudo omxplayer ./Music/File_Name.mp3 -p & claws-mail

Code: Select all

omxplayer home/pi/Music/File_Name.mp3 -p & claws-mail

Code: Select all

sudo omxplayer home/pi/Music/File_Name.mp3 -p & claws-mail
Note: I am a complete noob to Bash.
Any ideas?
Thanks!

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: [BASH] Launching programs from a Bash script.

Mon Aug 26, 2013 9:52 am

http://stackoverflow.com/questions/4510 ... purpose-of

The second answer sums it up quite nicely.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

Return to “Other programming languages”