- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CU Command: Fax modem check
Operating System - HP-UX
1752773
Members
4686
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2002 01:55 PM
тАО05-15-2002 01:55 PM
CU Command: Fax modem check
Hi all. I have a sort of odd request from my project manager. It seems the customers (users) from another division have been getting a number of reports of missing or failed fax transactions (through our 3rd party VSIFax program). Sometimes the fax numbers stored in the database are busy or non-functioning, so the only way to check is for us to check them one at a time (and we are talking nearly 500+ fax numbers overall). VSIFax has failed to point us to a method of 'pre-checking' the numbers/lines so I am turning here.
Is it possible to use the 'cu' command to do the following (?):
From a Oracle database, extract a fax number. Then using a function in the script, plug in the fax number into a command like: 'cu -l ttyd1p0 -m dir $1'... Where the cu program will connect to the MUX (where the modem is located) and dial the number.
If the modem connects with the fax tone, it could be drop the connection and return 'Fax Ready'. If it returned a busy tone, the result would be 'Busy'. Otherwise it just returns NO CARRIER.
-- M
Is it possible to use the 'cu' command to do the following (?):
From a Oracle database, extract a fax number. Then using a function in the script, plug in the fax number into a command like: 'cu -l ttyd1p0 -m dir $1'... Where the cu program will connect to the MUX (where the modem is located) and dial the number.
If the modem connects with the fax tone, it could be drop the connection and return 'Fax Ready'. If it returned a busy tone, the result would be 'Busy'. Otherwise it just returns NO CARRIER.
-- M
Be lazy. Do it right the first time.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2002 02:17 PM
тАО05-15-2002 02:17 PM
Re: CU Command: Fax modem check
Hi:
If I were you I would look into a utility call 'Pcomm+' available at a modest cost from:
http://www.rtr.com/Ready-to-Run_Software/communication_readypak.htm. Pcomm+ is part of their 'CommPak for UNIX'.
It has a scripting language which can timeout, look for regular expressions (more or less), and send/receive characters from a tty line. It will handle all the dialing and handshake stuff for you. You can also return status codes to an external program (in this case a shell script). You will have to write a sqlplus command to extract the phone numbers and then let your shell script build a pcomm+ batch file 'on the fly'.
I have used this method to build rather complex
modem transfer programs.
If I were you I would look into a utility call 'Pcomm+' available at a modest cost from:
http://www.rtr.com/Ready-to-Run_Software/communication_readypak.htm. Pcomm+ is part of their 'CommPak for UNIX'.
It has a scripting language which can timeout, look for regular expressions (more or less), and send/receive characters from a tty line. It will handle all the dialing and handshake stuff for you. You can also return status codes to an external program (in this case a shell script). You will have to write a sqlplus command to extract the phone numbers and then let your shell script build a pcomm+ batch file 'on the fly'.
I have used this method to build rather complex
modem transfer programs.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2002 07:14 AM
тАО05-17-2002 07:14 AM
Re: CU Command: Fax modem check
Several years ago I have used kermit to do very similar things. It has a scripting language and can do commans via stdin and stdio. Kermit is well supported and comes free with HPUX.
I have used it to check and reset locked modems, send system error messages via pager and download edi like transmissions over Phones lines and ethernet.
At first, It seems scary to use. but once you find a few examples. You will quickly learn that your task can be easily accomplished.
Rory
I have used it to check and reset locked modems, send system error messages via pager and download edi like transmissions over Phones lines and ethernet.
At first, It seems scary to use. but once you find a few examples. You will quickly learn that your task can be easily accomplished.
Rory
There are a 100 ways to do things and 97 of them are right
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP