Stuart Jansen wrote:

> #!/bin/bash
> DELAY=10
> DEVICE="/dev/ttyUSB0"
> 
> printf '\xFF\x01\x01' > "$DEVICE" # Power off
> sleep "$DELAY"
> printf '\xFF\x01\x00' > "$DEVICE" # Power on

Commit rejected.

Never name a variable that has anything to do with time without using 
the units in the name:

-DELAY=10
+DELAY_SECONDS=10

:)

--Dave


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to