Shell scripts have stopped working

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Shell scripts have stopped working 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?
jedibugs
 
Posts: 7
Joined: Tue Sep 01, 2009 2:25 am

Re: Shell scripts have stopped working 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell scripts have stopped working 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.
jedibugs
 
Posts: 7
Joined: Tue Sep 01, 2009 2:25 am

Re: Shell scripts have stopped working 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support