|
|
Play Audio in Background?
Just add an & after the command and it will run in the background, thus allowing you to close the terminal window (or even quit terminal entirely) without affecting playback.
Play Audio in Background?
That only somewhat works. I can continue working in that same terminal window, however, if I close it, I get a warning saying that I'm going to terminate running processes (login, bash, afplay)
Play Audio in Background?
Don't worry that you're doing something wrong. You're correct. Using & puts it in the background of the shell, but if you kill the shell, you kill that application as well.
Play Audio in Background?
There's an easier way to close a terminal window (which is not the preferred way to end the shell inside it---similar to using 'force quit' to end safari instead of the quit menu command) without OS X whining or killing the programs you've started:
Play Audio in Background?
This is a little complicated - the full details are far too involved to go into right here.
Play Audio in Background?
There is a simpler way to run a program in the background and detach it from the controlling terminal without using nohup. Just do this.
The parentheses request the creation of a subshell which becomes the parent process for the program you run. You can verify this works as follows.
You'll see something like this.
(Ignore the
Play Audio in Background?
That does not work
Play Audio in Background?
Does for me, exactly as I described. If it doesn't for you, then you are doing something different. I started the music with the command as I described, and the proceeded to completely quit terminal. The music happily continued playing. It works.
Play Audio in Background?
No I am not doing anything different? .
But what does work is,
I can then close the window or quit terminal. Thanks --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.15 seconds |
|