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 10-24-2009, 08:13 PM   #1
polarberg
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
Bash scripting - Don't wait for application exit


Sorry, I don't really even know what question to ask here, but basically I need to know how to make Bash not wait around for Audacious to exit to get on with the rest of this script:

Quote:
#!/bin/bash
amixer set Master 0
audacious ~/audio/flac/Microscopic\ Septet/2008\ -\ Lobster\ Leaps\ In/09\ -\ Lt.\ Cassawary.flac
vol=0
until [ $vol = 74 ]
do
amixer set Master $vol
let "vol += 1"
sleep 1
done
exit 0
Current behaviour is to run Audacious in the terminal and then wait for the application to close before continuing, as is normal with running things in the terminal.
 
Old 10-24-2009, 08:27 PM   #2
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Have a look at this thread. It talks about a similar issue.
 
Old 10-24-2009, 08:35 PM   #3
polarberg
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you. Had no idea what to ask. Cheers.
 
  


Reply

Tags
bash


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
C program will not compile - wait and exit scope student04 Programming 7 03-26-2007 11:02 AM
Bash scripting problem with exit codes Jeiku Programming 2 05-15-2006 02:22 AM
Bash: Print usage statement & exit; otherwise continue using Bash shorthand operators stefanlasiewski Programming 9 02-07-2006 06:20 PM
bash-script won't wait for application to finish TLV Linux - Software 24 10-01-2004 12:18 AM
Shell Scripting Exit(s) liguorir Linux - Software 3 04-21-2004 11:59 AM


All times are GMT -5. The time now is 07:39 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