Paul, is it possible to redirect input from a file?
I have a LCD-display (giving me trouble crashing owserver) that I want to
'write' to like:
  owwrite -s localhost:3002 FF.8D0300000100/line16.1 < ....
and then use a text-file or command substitution like  < `date'

Ed

Paul Alfille-2 wrote:
> 
> Another approach is with owshell:
> 
> #!/bin/sh
> 
> #defines
> PORT=4304
> CHIP_FOO=12.D5D61F000000
> CHIP_BAR=12.F7D11F000000
> 
> owserver -u -p $PORT
> 
> for rep in 0 1 ; do
>   owwrite -s $PORT $CHIP_FOO/PIO.A 0
>   #sleep 20
>   owwrite -s $PORT $CHIP_FOO/PIO.A 1
>   #sleep 20
>   owwrite -s $PORT $CHIP_BAR/PIO.A 1
>   #sleep 20
>   owwrite -s $PORT $CHIP_BAR/PIO.A 0
>   #sleep 20
> done
> 
> 
> Paul Alfille
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Shell-scripts-and-OWFS-tf4221305.html#a12590554
Sent from the OWFS - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to