- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remote copy a file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
06-21-2002 01:16 AM
06-21-2002 01:16 AM
Remote copy a file
Can any one tell me how to copy a file from one machine to another remote machine with out using rcp command? or else what are all ways to do the same?.
Thanks
Vasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:20 AM
06-21-2002 01:20 AM
Re: Remote copy a file
Other methods:
1) scp (secured equivalent of rcp - you need to install ssh)
2) sftp (secured equivalent of ftp - you need to install ssh)
3) ftp
4) nfs
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:21 AM
06-21-2002 01:21 AM
Re: Remote copy a file
Try using using 'ftp'
If your systems are secure most of the time I create a 'tar' archive of a directory for example or large file and then 'ftp' the file across to the other server.
HTH
Mick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:22 AM
06-21-2002 01:22 AM
Re: Remote copy a file
Or how about
tar cf - /tmp/file | remsh host2 "(cd /;tar xf -)"
Or setup an NFS mount of a filesystem between the two machines and copy files via that directory ? .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:34 AM
06-21-2002 01:34 AM
Re: Remote copy a file
Share your homedirectory on the systems. On each system you will have your files available.
Put the copyfile in your homedir, log on to the other host and your file is there as well... no need to use rcp, ftp.
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:43 AM
06-21-2002 01:43 AM
Re: Remote copy a file
Thanks for quick response.
Scenairo:
There are n number of machines, once I update a file under the user's home directory on box-1 it should update the same file on all the boxes. But they will not provide password & they will not allow rcp or ftp or remsh?.
Can we send that file as a mail & detach it at the other end automatically, if this is possible how can we do that?. or else is there any other way to do that?.
Thanks
Vasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:45 AM
06-21-2002 01:45 AM
Re: Remote copy a file
remsh hostname cat file1 > file2
file2 gets created on local machine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 01:47 AM
06-21-2002 01:47 AM
Re: Remote copy a file
Surely they must allow you to use scp or sftp (secure versions - so all traffic is encryped and thus safe ?)
HP now provide a free supported version of ssh (Secure shell) you can download from www.software.hp.com
T1471AA A.03.10.001 HP-UX Secure Shell
The only other way to do it is use the automounter (man automount) but this means using nfs to mount your filesystem on box-1 to all the other servers - this is not secure so surely using ssh is much much better.
If any of your files to copy/propogate are greater than 2GB then the only program you can use is gtar (gnu tar). All other programs wont copy files that big (automount, rcp, cpio etc.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 02:59 AM
06-21-2002 02:59 AM
Re: Remote copy a file
You can do it by an email by defining an alias in the aliases file into the /etc/mail directory.
You can define an alias called file for instance with something like this:
file:"|cat - > /directory/file"
When you define a new alias you must run newaliases command in order to update the mail database.
With this approach you can put the mail in the file and directory where you want to have.
More information at man aliases.
Hope this helps,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 03:27 AM
06-21-2002 03:27 AM
Re: Remote copy a file
Regards,
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 04:04 AM
06-21-2002 04:04 AM
Re: Remote copy a file
>
> There are n number of machines, once I update a file under the user's home directory
> on box-1 it should update the same file on all the boxes. But they will not provide
> password & they will not allow rcp or ftp or remsh?.
*Why* do they not allow passwords or the use of these tools?
> Can we send that file as a mail & detach it at the other end automatically, if this is
> possible how can we do that?.
These are conflicting requirements! I.e. *automatic* unpacking (your "detach") is even more dangerous than rcp et al, because *anyone* can send mail, probably even from outside the target company. With rcp et al, the receiver at least gets to define which host(s) or/and user(s) can install things on hir system.
> or else is there any other way to do that?.
On the other hand, if you just want to mail the files and let the receiver *manually* install them, then you can just send them a shar (shell-archive, see shar(1)) with the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 05:50 AM
06-21-2002 05:50 AM
Re: Remote copy a file
You may see if "rdist" is of any help. Try "man rdist" for more help on this command.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 10:01 AM
06-21-2002 10:01 AM
Re: Remote copy a file
1. ftp
2. secure ftp ... eg: sftp, psftp
3. scp
4. nfs
4. samba
Most of the people mentioned about first four ways. If you have configured samba server on your HP system and share the directories with windows you can copy the file/directories the way you copy the files between windows systems. If you share the directories with unix systems it's just like nfs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2002 10:22 AM
06-21-2002 10:22 AM
Re: Remote copy a file
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/85-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/85-toc.html&searchterms=rdist&queryid=20020621-112956
The above link is a document on setting up rdist on 11.0. Note that rdist requires remsh access, so it sounds as if this is not an option for you either.
Without some sort of login id and password to the other machines, there is really not a whole lot you can do to get the update(s) out to the other machines.