LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-24-2009, 08:13 PM   #1
polarberg
LQ Newbie
 
Registered: Oct 2009
Posts: 2
Thanked: 0
Bash scripting - Don't wait for application exit


[Log in to get rid of this advertisement]
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.
linuxubuntu polarberg is offline  
Tag This Post
Reply With Quote
Old 10-24-2009, 08:27 PM   #2
MrCode
Member
 
Registered: Aug 2009
Location: Maryland, USA
Distribution: Ubuntu 9.04 (main), Slackware 13.0, Mint Gloria (in VMs)
Posts: 88
Thanked: 7
Have a look at this thread. It talks about a similar issue.
linuxubuntu MrCode is offline     Reply With Quote
Old 10-24-2009, 08:35 PM   #3
polarberg
LQ Newbie
 
Registered: Oct 2009
Posts: 2
Thanked: 0

Original Poster
Thank you. Had no idea what to ask. Cheers.
linuxubuntu polarberg is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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:50 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration