Virtual COM port on Linux

Andrew McNabb amcnabb at mcnabbs.org
Mon Mar 15 13:20:47 MDT 2010


On Mon, Mar 15, 2010 at 11:57:33AM -0600, Dave Smith wrote:
> 
> Well, that's what I did, and it looks like this, which is nice:
> 
>    # cat reboot-comcast-cable-modem
>    #!/bin/bash
>    relay-off
>    sleep 10
>    relay-on

By the way, I would probably merge these into the Python script.  Then
you could "relay.py on", "relay.py off", or "relay.py cycle" and have
all of the logic in one place.  And if you wanted to, you could add a
command-line option for setting the delay time.

-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868


More information about the PLUG mailing list