ctwise Posted February 16, 2013 Share Posted February 16, 2013 Alfred waits for a script to finish before re-running it with further input. This works as designed. But it appears to also wait for child processes. If my script spawns a background process and returns Alfred waits for the background process to complete. Amoftcoorb 1 Link to comment Share on other sites More sharing options...
CarlosNZ Posted February 17, 2013 Share Posted February 17, 2013 Yup, it sure does. I found the only way to get Alfred to well and truly forget about a spawned background script was: ./myscript.sh > /dev/null 2>&1 & Link to comment Share on other sites More sharing options...
Vero Posted February 19, 2013 Share Posted February 19, 2013 This is how NSTask works - the solution provided by CarlosNZ is the best one for you to use. I've moved this to Noted as Andrew always likes to consider options, so we'll keep a note on this one Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now