Operating System - HP-UX
1836752 Members
2889 Online
110109 Solutions
New Discussion

Re: Send text file with cu from command line

 
Rafael Moran
Advisor

Send text file with cu from command line

Hello,

Does anybody knows how to send a text file
from the command line using cu ?
The device file i use is /dev/tty1p0. The modem
is well configured and i'm able to call with it
interacting with cu but i would like to do it
automatically from an script without interact.

Thank you in advanced
Hi! I'm keko
4 REPLIES 4
Paula J Frazer-Campbell
Honored Contributor

Re: Send text file with cu from command line

Hi
See man cu:-
~%put local_source_file [remote_destination_file]
Copy file local_source_file on local system to
file remote_destination_file on remote system. If
remote_destination_file is not specified, the
local_source_file argument is used in both places.

Also search the forum for cu.


HTH

Paula
If you can spell SysAdmin then you is one - anon
Cheryl Griffin
Honored Contributor

Re: Send text file with cu from command line

You can also find this information online.

This is a link I used to local things quicker than navigating menus on the doc site.
http://www.docs.hp.com/cgi-bin/otsearch/hpsearch
I used keywords: cu +file +transfer +modem
The direct link to the doc site I found is located at the bottom of this message, but here are some excerpts from the doc page for cu.

You have a few options to look at:

~%put local_source_file [remote_destination_file]
Copy file local_source_file on local system to file remote_destination_file on remote system. If remote_destination_file is not specified, the local_source_file argument is used in both places.


~%take remote_source_file [local_destination_file]
Copy file remote_source_file from the remote system to file local_destination_file on the local system. If local_destination_file is not specified, the remote_source_file argument is used in both places.


~%

Here is the direct link:
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90680/B2355-90680_top.html&con=/hpux/onlinedocs/B2355-90680/00/00/61-con.html&toc=/hpux/onlinedocs/B2355-90680/00/00/61-toc.html&searchterms=transfer%7cfile%7cmodem%7ccu&queryid=20010329-043431
"Downtime is a Crime."
Nick W
Frequent Advisor

Re: Send text file with cu from command line

Hello Rafael,

Sounds like you should also consider using uucp to transfer your files.

I am not sure, but you implied that you may be looking at a way to automate this process...?

Downside: This is no longer mentioned in SAM (HP regard this as obsolete)
Upside: ITRC docs exist which detail how to configure the uucp files (Systems, Devices, Dialers, Permissions etc....)
O'Reilly have an excellent book on the subject.
There are always the man-pages :-)


Hope this helps.
Regards,
Nick
Rafael Moran
Advisor

Re: Send text file with cu from command line

Thank you for your answers.
I keep on working with it. The man pages of cu
are a little bit confusing ( i checked them before post the message ) so i will revise all
the docs I will find about it
Hi! I'm keko