Announcement

Collapse
No announcement yet.

Linux, Bash and event values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linux, Bash and event values

    hi..

    Quick question.. how can i pass a device value to a shell script ?

    I have no problem running script with parameters, but how can i get the value to be one of them ?

    Im running the script as "Run another program or process" with Bash as the program and script (.sh) with parameters as command parameters.
    Last edited by levring; January 11th, 2017, 03:17 PM.

  • #2
    Use replacement variables as described in the following link.

    http://homeseer.com/support/homeseer..._variables.htm

    Comment


    • #3
      Originally posted by lveatch View Post
      Use replacement variables as described in the following link.

      http://homeseer.com/support/homeseer..._variables.htm
      Thanks for the input..
      It works great while sending an email, but I cant get it to work then passing the variable to a script.

      Requesting program: "/bin/bash"
      With parameter: "/home/pi/HomeSeer/scripts/beoplay.sh 192.168.2.98 volume $$DVR:128:"

      Any idea why the variable is not being replaced ?

      Comment


      • #4
        For those returning to this thread..

        As said in previous post the replacement variables are not supported in running program or process. But found a workaround here by modifying the speak script and using the speak functionality instead.
        https://forums.homeseer.com/showpost...39&postcount=8

        Comment

        Working...
        X