Bash: grep and bc Not working
Posted: Sunday 07 February 2016 14:02
Hi,
On my bootstrapped Synology NAS ds212+ i installed:
IKPG:
- grep
- sed
- Bash
- bc
- Domoticz 2.4020
What happends:
I have a bash script with cmod 777 rights and there are zero hidden characters (cat -v) (user DOMOTICZ).
In a shell box like Putty or command box the script works just fine.
But if i trigger the script with domoticz i get the error that grep en bc is not valid ect. ( i also tried it to trigger it with lua but i get the same error)
because i use float variabels i need bc for math stuff.
I tried different headers like:
#!sh
#!/bin/bash
#!/user/bin/bash
But that make no sense @all
What can i do?
On my bootstrapped Synology NAS ds212+ i installed:
IKPG:
- grep
- sed
- Bash
- bc
- Domoticz 2.4020
What happends:
I have a bash script with cmod 777 rights and there are zero hidden characters (cat -v) (user DOMOTICZ).
In a shell box like Putty or command box the script works just fine.
But if i trigger the script with domoticz i get the error that grep en bc is not valid ect. ( i also tried it to trigger it with lua but i get the same error)
because i use float variabels i need bc for math stuff.
I tried different headers like:
#!sh
#!/bin/bash
#!/user/bin/bash
But that make no sense @all
What can i do?