How to run bash script
Moderator: RDNZL
How to run bash script
How I can run bash script as action?
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: How to run bash script
By using the 'execute command' action type and entering the full path to the script.
Make sure you did chmod +x <file> and the user you run domotiga as has permissions.
Make sure you did chmod +x <file> and the user you run domotiga as has permissions.
Regards, Ron.
Re: How to run bash script
Thanks, I didn't noticed that
Another question: How to make condition, device value is greater than 30? Dev_39_Value1 > 30, gives an error but Dev_39_Value1 = 30, gives false

Another question: How to make condition, device value is greater than 30? Dev_39_Value1 > 30, gives an error but Dev_39_Value1 = 30, gives false
Re: How to run bash script
IMHO the values are seen as strings and "=" would do a simple string comparison (and would be true when Dev_39_Value1="30". So using Val(Dev_39_Value1)>30 works like a charmJippe wrote:Thanks, I didn't noticed that![]()
Another question: How to make condition, device value is greater than 30? Dev_39_Value1 > 30, gives an error but Dev_39_Value1 = 30, gives false

n.b.
the val() converts strings to integers.
Kind Regards,
Greg.
Greg.
Re: How to run bash script
Thanks sj3fk3, Dev_39_Value1 > "30" works also but I changed it like you said.
I'll take baby steps with this new software and wish more documentation/examples..
I'll take baby steps with this new software and wish more documentation/examples..
Re: How to run bash script
You did see this one right? It contains some useful gems of information: http://domotiga.nl/projects/domotiga/wi ... nual_(old)Jippe wrote:Thanks sj3fk3, Dev_39_Value1 > "30" works also but I changed it like you said.
I'll take baby steps with this new software and wish more documentation/examples..
and you can always ask stuf here or on the http://domotiga.nl/projects/domotiga/boards
Kind Regards,
Greg.
Greg.