I am hoping someone can help me on this one or shed some light on it
Basically what I am trying to do is to cu to access a direct connect modem.
what I would like to do then is pass cu commands from a shell script or c prog
and then read the results from cu (what the modem is saying etc) and then
take a decision on the output based on the results back.
I think the following arrangement should work.
myprog | cu -s9600 l/dev/tty2a >named.pipe
myprog could be a script or c prog that reads from named.pipe (a named pipe),
and writes to stdout, using a delay between chars sent on stdout.
The purpose of the exersize is to dial onto a remote system , navigate a couple
of menus , and save what i get back to a file.
I know that this should be pretty easy, but the above doesn't work.
Has anyone done a similar thing on Unix (SCO at the moment).
I would be very happy if someone could shed some light on this :-)
thanks in advance.
--
==============================
PGP Key Available On Request.
==============================