Error running script. returned: 32512

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
deve87
Posts: 45
Joined: Saturday 08 April 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Error running script. returned: 32512

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Error running script. returned: 32512

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
deve87
Posts: 45
Joined: Saturday 08 April 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error running script. returned: 32512

Post 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.
deve87
Posts: 45
Joined: Saturday 08 April 2017 8:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Error running script. returned: 32512

Post by deve87 »

Found the problem

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

Who is online

Users browsing this forum: No registered users and 1 guest