Page 1 of 1

Shell scripts have stopped working

PostPosted: Thu Sep 18, 2014 8:58 pm
by jedibugs
Hi guys,

I've been using an embedded shell script to update my flex library when a file is moved into the appropriate plex folder. Here's the script:
Code: Select all
curl "http://localhost:32400/library/sections/2/refresh"


This has worked for a couple years, but suddenly is not working anymore. I know the script is good, because if I paste it into Terminal, it executes just fine.

In Hazel, however, it errors out. Here's the Log output:
Code: Select all
Shellscript exited with non-successful status code: 7


Any ideas?

Re: Shell scripts have stopped working

PostPosted: Fri Sep 19, 2014 12:14 pm
by Mr_Noodle
Running it in Terminal is not the same as in Hazel. I suspect there is some environment variable the script expects that isn't being set. Also, you should look into curl's docs on the error code.

Re: Shell scripts have stopped working

PostPosted: Fri Sep 19, 2014 12:17 pm
by jedibugs
It's just weird because I haven't changed anything. The script is the same one I've been using a couple years... it only started throwing an error a couple days ago.

Re: Shell scripts have stopped working

PostPosted: Fri Sep 19, 2014 1:26 pm
by Mr_Noodle
Check the error code as that's really the only indication of what the problem may be. It will probably make more sense once you find that.