Page 1 of 1

Error running script. returned: 32512

Posted: Monday 25 March 2019 19:16
by deve87
When i run script in Domoticz. It returns: Error executing script command (/home/pi/domoticz/scripts/bash/viasat4.sh). returned: 32512

script:///home/pi/domoticz/scripts/bash/viasat4.sh

Code: Select all

#!bin/bash
wget -q "http://192.168.10.113:80/json?plain=[{'data':[2622,1890,684,312,352,312,350,312,684,644,350,312,350,314,350,314,350,312,352,312,350,314,350,312,350,314,350,312,350,314,710,618,684,312,350,644,352,312,684,644,684,644,684,644,684,644,350,314,348],'type':'raw','khz':38}]" &&
sleep 1 &&
wget -q "http://192.168.10.113:80/json?plain=[{'data':[2562,1950,624,372,288,374,288,374,624,704,290,374,288,374,290,374,288,374,290,374,288,376,288,374,290,374,290,374,290,374,288,374,290,374,290,374,288,374,624,372,288,376,288,706,624,704,624,704,624,704,624,704,290,374,288],'type':'raw','khz':38}]"

It runs fine in ssh

Re: Error running script. returned: 32512

Posted: Monday 25 March 2019 20:30
by waaren
deve87 wrote: Monday 25 March 2019 19:16 When i run script in Domoticz. It returns: Error executing script command (/home/pi/domoticz/scripts/bash/viasat4.sh). returned: 32512

script:///home/pi/domoticz/scripts/bash/viasat4.sh

Code: Select all

#!bin/bash
wget -q "http://192.168.10.113:80/json?plain=[{'data':[2622,1890,684,312,352,312,350,312,684,644,350,312,350,314,350,314,350,312,352,312,350,314,350,312,350,314,350,312,350,314,710,618,684,312,350,644,352,312,684,644,684,644,684,644,684,644,350,314,348],'type':'raw','khz':38}]" &&
sleep 1 &&
wget -q "http://192.168.10.113:80/json?plain=[{'data':[2562,1950,624,372,288,374,288,374,624,704,290,374,288,374,290,374,288,374,290,374,288,376,288,374,290,374,290,374,290,374,288,374,290,374,290,374,288,374,624,372,288,376,288,706,624,704,624,704,624,704,624,704,290,374,288],'type':'raw','khz':38}]"

It runs fine in ssh
There are quite a number of posts on this forum already describing various solutions for this problem, varying from other users, saving script with vi, and security settings. Please have a look at those suggested solutions and report back what you already tried and the results.
Thanks

Re: Error running script. returned: 32512

Posted: Monday 25 March 2019 22:26
by deve87
Thanks for replying. I already tried the solutions for 32512 from forum.
Saving script with vi don't make any difference and permission is correct.

Re: Error running script. returned: 32512

Posted: Monday 25 March 2019 22:42
by deve87
Found the problem

Forgot / after #! in #!/bin/bash