Search found 3 matches
- Friday 16 January 2015 20:28
- Forum: Other questions and discussions
- Topic: lua error returned: 32256
- Replies: 4
- Views: 10170
Re: lua error returned: 32256
I deleted "script-ssh_reboot-hyperion.sh" and I modified "script_device_hyperion.lua" like this : commandArray = {} if (devicechanged['Hyperion'] == 'Off') then os.execute ('ssh root:[email protected] //storage/reboot_hyperion.sh') end return commandArray problem solved
- Friday 16 January 2015 20:19
- Forum: Other questions and discussions
- Topic: lua error returned: 32256
- Replies: 4
- Views: 10170
Re: lua error returned: 32256
I found my problem! Domoticz uses "root" to launch scripts. I had only generated an ssh key for "pi". Here are the actions that I realized : 1/ I chose a new password for"root" pi@domoticzpi $ sudo passwd root 2/ I log in "root" : pi@domoticzpi $ sudo passwd root 3/ I generate a new ssh key : root ...
- Friday 16 January 2015 0:50
- Forum: Other questions and discussions
- Topic: lua error returned: 32256
- Replies: 4
- Views: 10170
lua error returned: 32256
Hello everybody, I can not use the command line " os.execute" in a lua script. I get the following error: Error: Error executing script command (/home/pi/domoticz/scripts/lua/script_device_hyperion.lua). returned: 32256 I created a virtual hardware "Equipement Virtuel" : http://img4.hostingpics.net ...