Shell scripts not working since 3.1

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

Moderator: Mr_Noodle

Re: Shell scripts not working since 3.1 Fri Jun 21, 2013 2:37 pm • by Mr_Noodle
Using your script as written (except changing the path to perl), I get the following in my logs:

line 3: syntax error near unexpected token `OUT,'
line 3: `open(OUT, ">>/tmp/perl.log");'
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell scripts not working since 3.1 Fri Jun 21, 2013 3:15 pm • by xor2000
I suspect you have introduced spaces in front of the lines during copy/paste. Please remove these and the script should run.
xor2000
 
Posts: 13
Joined: Mon Oct 17, 2011 4:54 pm

Re: Shell scripts not working since 3.1 Thu Jun 27, 2013 6:12 am • by xor2000
Just wanted to check if you have been able to reproduce the issue with the sample Perl script (after removing the spaces).
xor2000
 
Posts: 13
Joined: Mon Oct 17, 2011 4:54 pm

Re: Shell scripts not working since 3.1 Thu Jun 27, 2013 12:53 pm • by Mr_Noodle
I've identified an issue with external scripts. There should be a fix in the next release.

You can also try turning that into an embedded script (just set perl as the shell). The current bug should not affect that.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell scripts not working since 3.1 Sat Jun 29, 2013 3:24 pm • by someone1
I have the same issue with a Ruby-Script. Version 3.1.1, downloaded today, doesn't fix it. Scripts still exit with error-code 2, it's not able to find the shell. The first line in my script is:

#!/usr/local/bin/ruby
someone1
 
Posts: 1
Joined: Sat Jun 29, 2013 3:22 pm

Re: Shell scripts not working since 3.1 Mon Jul 01, 2013 10:46 am • by Mr_Noodle
Version 3.1.2 is out and should fix this so try updating and reporting back.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell scripts not working since 3.1 Mon Jul 01, 2013 3:22 pm • by xor2000
With Version 3.1.2 my Perl scripts work again from Hazel, thanks!
xor2000
 
Posts: 13
Joined: Mon Oct 17, 2011 4:54 pm

Previous

Return to Support