1834870 Members
2576 Online
110070 Solutions
New Discussion

Re: Remote Connection

 
Joell
Occasional Contributor

Remote Connection

Hello,

I need to use the command cu or kermit fron a shell script. Somebody have idea what i need to do?? this script will be run fron cron.

tnkx!
11 REPLIES 11
Rick Garland
Honored Contributor

Re: Remote Connection

There is some sort of "chating" that needs to be done.
Have you looked at the possibility of using PPP?
Alan Riggs
Honored Contributor

Re: Remote Connection

cu is the old modem communication protocol. (Old in the sense that it has been around for a while, not that it has been superceded.) Configuration for modem connections is generally done in /etc/uucp/Devices. There are some other configuration files in /etc/uucp, but it is not generally necessary to modify them (though you may want to add an entry into Systems). man cu has some information on the command, but it is dificult to offer precise advice without more information. Why do you need to use cu in a script? What connection are you trying to establish?
Anthony deRito
Respected Contributor

Re: Remote Connection

I am curious... do you want to use cu to send numeric pages to pagers? If you are, have you considered going with some of the inexpensive alpha paging software packages like EtherPage? If you need to use cu, configure your modem by following the procedures on the HP Instant Information CD - Configuring HP-UX for Peripherals. After you get the modem configured, use cu -s[speed] [message to send]. I have used this for pagers only and it works fine.
Patrick Wessel
Honored Contributor

Re: Remote Connection

Joell,

What are you planning to do? I think that kermit is much better do write complex scripts but it depends really on the job that the scrip is supposed to do.
There is no good troubleshooting with bad data
Adrian Voysey
Advisor

Re: Remote Connection

It depends what you want to do ? For example do you want to dial out to another server and download/upload certain files or do you want other servers to dial into your system and request for certain files?

If you want to copy files to servers and request for files you can use uucp this requires both servers to be set up . The files of concern are /etc/uucp/Devices ( information about modem port )/etc/uucp/Systems (which tells you information about the remote server i.e. login id, telephone number , /etc/Permissions which gives information about permissions allowed on remote machine. (look at setting up UUCP)
Once set , you can send files to remote system ,e.g uucp filename remote system|rem dir , or you can use uucico in cron which checks for any files to be retrieved from the remote system or sent.

If this is of some interest you can look at setting up uucp.

Hope this helps .
Joell
Occasional Contributor

Re: Remote Connection

Anthony deRito,

I try to dial a Sky tel server in mexico, is a provider of alpha pager, can you tell me how work the CU command to do this?? or if I can use another command??

I show you a example.

PAGER ID: 6282687 < The pager ID
OPTION: 1 < Send a message
ENTER ALPHA MESSAGE: TEST < My message
SEND ?: Y < Confirm
OPTION: 99 < 99 to Disconnect

tnks
Brian M. Fisher
Honored Contributor

Re: Remote Connection

In order to send an Alpha page I use a simple paging software called Spatch which is able to properly negotiate with the TAP alpha access number. A free trial is available at www.spatch.com

The basic UNIX software only costs $199

Brian
<*(((>< er
Perception IS Reality
Anthony deRito
Respected Contributor

Re: Remote Connection

Joell, use cu if you want to send simple numeric pages to pagers without purchasing other software. Here is my take on what you have said so far. You already have alpha pagers so you have invested in these devices. If you want to send and recieve alpha pages reliably and efficiently purchase a alpha paging software tool like Spatch or EtherPage and install it on your system. Its easy to install, inexpensive and provides reliable and informative pages. If you are talking about a production system and/or you need to recieve text messaging that "makes sense" then you need to go with alpha paging software. I use EtherPage for all text based pages. There is a command line version to use in all your scripts and a web based GUI. There are plenty packages out there. If you want more info on EtherPage, I can give it to you.

Tony
Patrick Wessel
Honored Contributor

Re: Remote Connection

Find a small kermit script attached, that we use for paging. Some of the text is in German, but I hope you are able to get an idea anyway
There is no good troubleshooting with bad data
Deshpande Prashant
Honored Contributor

Re: Remote Connection

Hi

Check the following url.

This gives information for configuring to send simple numeric pages using cu command.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=b6ea7f2613c17aa275/screen=ckiDisplayDocument?docId=200000024602551
Take it as it comes.
Alan Riggs
Honored Contributor

Re: Remote Connection

You might also want to check with your paging service. Many paging services will transform email messages into an alpha page. that is the solution we use -- simply generate a message and pass it to sendmail with the proper address (often the phone #@page_service.net).