Operating System - HP-UX
1777316 Members
2986 Online
109068 Solutions
New Discussion юеВ

Copy file from the host pc to the client hpux

 
itreyger
Frequent Advisor

Copy file from the host pc to the client hpux

I need to copy file from the host to the client pc.What command should I use. Do I need to telnet first from the host to the client and then run cp command? Thanks
10 REPLIES 10
A. Clay Stephenson
Acclaimed Contributor

Re: Copy file from the host pc to the client hpux

The most straightforward method is to use ftp.
From your pc under a command prompt:
ftp hostname
Login using your UNIX login and password.
cd /xxx/yyy/yourdir
[optional enter "BIN" or "ASCII" depending upon whether you want file transfers without any changes (binary) or CR/LF conversions (ASCII)]

get filename
quit
If it ain't broke, I can fix that.
itreyger
Frequent Advisor

Re: Copy file from the host pc to the client hpux

I need to copy file from one unix cd to another. Thanks
A. Clay Stephenson
Acclaimed Contributor

Re: Copy file from the host pc to the client hpux

It's basically the same answer as before.

I assume that you have the cd mounted on your unix host. Use ftp on your PC to transfer the file and then copy the file to a writable CD on your PC.
If it ain't broke, I can fix that.
itreyger
Frequent Advisor

Re: Copy file from the host pc to the client hpux

Sorry,I will clearify. I need to copy file from one hpux worstation to another hpux workstation.Thanks
Patrick Wallek
Honored Contributor

Re: Copy file from the host pc to the client hpux

Your options are numerous:

ftp
scp
rcp


If you don't know how to use those commands, have a read through the man pages.
A. Clay Stephenson
Acclaimed Contributor

Re: Copy file from the host pc to the client hpux

... and don't forget to add NFS to the list. You could mount the cd on one workstation and export that mountpoint/directory and then mount -F nfs the directory on the other workstation and you can then simply use cp.

Now please explain what your subject line has to do with the actual question.
If it ain't broke, I can fix that.
itreyger
Frequent Advisor

Re: Copy file from the host pc to the client hpux

I used following command:
rcp -p /home/ftp/pub/eptc/dyn/data ux_pt/adacs/bin. ux_pt is the name of the uxhp workstation.Here is what I got after I ran it: rcp: /home/ftp/pub/eptc/dyn/data: not a plain file
A. Clay Stephenson
Acclaimed Contributor

Re: Copy file from the host pc to the client hpux

Your syntax is wrong:

rcp -p /home/ftp/pub/eptc/dyn/data ux_pt/adacs/bin

should be:

rcp -p /home/ftp/pub/eptc/dyn/data ux_pt:/adacs/bin/

I assume that "/home/ftp/pub/eptc/dyn/data" is a file rather than a directory.

Do an "ls -l /home/ftp/pub/eptc/dyn/data" to make sure.
If it ain't broke, I can fix that.
Sp4admin
Trusted Contributor

Re: Copy file from the host pc to the client hpux

There are a couple of different ways to do this. You can also just cp the file. I use F-secure from my PC and sftp from the unix server.

sp,
itreyger
Frequent Advisor

Re: Copy file from the host pc to the client hpux

I was able to copy file using following:
rcp filename remote_system_name:/tmp.
Thanks everybody for your input.