Hello,
I have been using the cu program in an expect script to poll various
devices. The typical script looks like this:
------------------------------
#!/usr/bin/expect
spawn /usr/bin/cu -s9600 -lttyS3
expect "\007"
send "\001$argv"
expect "\003"
send "\~."
------------------------------
I run scripts like this via cron to run diagnostic reports and save them to
files or email them out, etc.
BUT, cu does not always work as expected. For some devices I can connect
with cu from the command line and it works great, but will not work from the
expect script. Other times the expect script will run perfectly from the
command line, but will give no output when run from cron.
I have also tried kermit and minicom and have problems simular to cu. For
some devices minicom works where cu will not. I have simply not spent the
time to learn kermit scripting as it seems like massive overkill for what I
need to do.
I am not a very experianced C programmer and the cu program is really
overkill for my needs. I will glady pay a reasonable fee to anyone who can
write me a simple terminal program. what I really want is a very simple
terminal program that lets me specify simple line parameters such as baud,
tty device, bits, parity, etc. with no other features to clutter up the
code.
Any pointers to existing code or ideas are much appreicated.
Thanks,
Jeff Myers
Web Point Communications
[EMAIL PROTECTED]
http://www.wpc.net
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]