Jump to content
ctwise

Alfred waits on script child processes

Recommended Posts

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.

Share this post


Link to post

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 &

Share this post


Link to post

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 :)

Share this post


Link to post
×
×
  • Create New...