Operating System - HP-UX
1833832 Members
2544 Online
110063 Solutions
New Discussion

Re: Paging Scipt, unable to the dail using a modem

 
Abbey
Occasional Contributor

Paging Scipt, unable to the dail using a modem

I'm trying to write a scipt that will page
me when a file is not updated for an hour, however, I'm having trouble with the device configuration. When I run the cu commnad
it connect but never dials, however if I run
cu command without the phone # it connect and
when type the number manualy it works.
Help please.


cu -s9600 -l ttyts19 9057886789
Autodialing - please wait
Connected

Device entry
============

ACU ttyts19 - 9600 direct





2 REPLIES 2
James Specht
Trusted Contributor

Re: Paging Scipt, unable to the dail using a modem

Try this instead.

# cu -s9600 -l ttyts19 << EOF
9057886789
EOF

See if that dials.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
A. Clay Stephenson
Acclaimed Contributor

Re: Paging Scipt, unable to the dail using a modem

If this were me, I would disable the port for uucp/cu and instead use Kermit with a command file. It's actually much easier to mange the tty ports using Kermit. Man kermit for details. Plan B. Do a search for "setport" which is a utility that will hold a tty port open; you then simply issue echo statements redirected to the tty port.
If it ain't broke, I can fix that.