[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]

Re: Commandline test to see if a serial connection is up

Bill Sommerfeld sommerfeld@sun.com
Tue, 26 Apr 2005 17:08:23 -0700 (PDT)


On Tue, 2005-04-26 at 18:50, Stever wrote:
> Is there any way from commandline to send a carriage return to a console 
> and see if I get some sort of response back? I can write a script to 
> handle the details, but I just want to know if I can execute read/write 
> commands to the "console" program from commandline so I can put it in a 
> script.

Look for a package called "expect"; it's great for scripting this sort
of thing.

						- Bill