Error Processing Shell Script (TVNamer)

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

Moderator: Mr_Noodle

Error Processing Shell Script (TVNamer) Fri Apr 20, 2012 8:54 am • by developr
Hello,

I have been trying to get Hazel to rename my downloaded TV Shows using TVNamer, but it just wont work.

Here is my action:
http://d.pr/i/fRWr

It get's executed, and I get the following Growl Notification:
http://d.pr/i/irsq

Running it manually works just fine:
http://d.pr/i/HWRM

//EDIT
I just noticed, that in the log I get the following error:
Code: Select all
2012-04-20 14:46:07.399 hazelworker[3423] Shellscript exited with non-successful status code: 1


How do I exit it with a successful status code?

I hope you can help me ;)

Best Regards
developr
 
Posts: 1
Joined: Fri Apr 20, 2012 8:48 am

Re: Error Processing Shell Script (TVNamer) Fri Apr 20, 2012 11:17 am • by Mr_Noodle
When you run it manually, you need to check the exit code. Do 'echo $?' immediately after running it to see what it is. If it is returning anything non-zero, then you need to check the TVNamer to see why it's returning that code.

If you are desperate, you can add "exit 0" to the script. That will just hide the error though so if TVNamer fails for a valid reason, Hazel won't catch it.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support