Operating System - HP-UX
1753797 Members
7199 Online
108805 Solutions
New Discussion юеВ

Re: Telnet Commands to copy file from Host to Client

 

Telnet Commands to copy file from Host to Client

I am using a Windows Telnet Client and connect to an HPUX Machine.

What is the command sequence to copy a file on the HPUX machine to my windows client.

Also I may want to copy files from Windows to HPUX using Telnet.

Thanks
15 REPLIES 15
Steven E. Protter
Exalted Contributor

Re: Telnet Commands to copy file from Host to Client

Your best bet is to install a secure shell product on all devices.

Then you can actually share public keys and copy between sytems with the the scp command.

For HP-UX
http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

For Windows:

http://www.networksimplicity.com/openssh

I'm attaching a document on generating and exchanging public keys.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: Telnet Commands to copy file from Host to Client

Thanks for the Information. However right now we do not worry about security. We just need to copy files.

Nevertheless we may use your information at a later stage in the project.

Thanks
Steven Sim Kok Leong
Honored Contributor

Re: Telnet Commands to copy file from Host to Client

Hi,

If you are not worried about security, and you want to copy a file from your HPUX server to your windows client, then you can use FTP to do that. TELNET is for remote host sessions rather than remote file transferring.

Hope this helps. Regards.

Steven Sim Kok Leong

Re: Telnet Commands to copy file from Host to Client

So there is NO way to do it with FTP.

Or os there a combination of commands to accomplish that.

Re: Telnet Commands to copy file from Host to Client

So there is NO way to do it with Telnet.

Or is there a combination of commands to accomplish that.

Michael Schulte zur Sur
Honored Contributor

Re: Telnet Commands to copy file from Host to Client

Hi,

as steven said, telnet just provides means for a remote connection. Anything else is provided by ftp or rcp. Any newer window version has a ftp client. Connect with ftp and copy the files or, if you need it nore often you could use samba of nfs to provide a network drive on the HPUX machine, then you can copy from/to HPUX like in windows.

greetings,

Michael
Sanjiv Sharma_1
Honored Contributor

Re: Telnet Commands to copy file from Host to Client

Hi Wolfgang,

ftp is the best option for you as you needn't have install any software.

From the Windows client (say)
c:\> cd
c:\> ftp
Give the username/password
Make it binary or ascii as per requirement.
Binary ( for data files)
Ascii ( for text files)
ftp> bin or ascii
ftp> get to copy the file from hpux box to windows client.
ftp> put to copy the file from windows clients to hpux box.

You can do "man ftp" on the hpux machine to learn more about ftp.

telnet opens a session for you in the unix box and may not help you to copy files.

hth.

hth.
Everything is possible
Naveej.K.A
Honored Contributor

Re: Telnet Commands to copy file from Host to Client

You could automate this by making a batch file in windows and even shedule it to run automatically using the windows scheduler.

All you need to do is craete a batch file say test.bat with contents as
ftp -s:test1 -i 21.1.1.1

where test1 is the file which contains info about the files to be transferrred and 21.1.1.1 is the IP address of the HPUX box.

and then the test1 will contain the following text.

testuser
testpass
bi
lcd c:\windows\desktop\folder
cd /var/tmp
mput file1
bye

testuser is the username through which the user will be logged into your hpux server while testpass is the password. You are transferring the file, "file1" from c:\windows\desktop\folder in the windows machine to /var/tmp in the unix box.

Better to make both the test.bat and test1 hidden. Hope this helps you

Regards
naveej
practice makes a man perfect!!!
Shaikh Imran
Honored Contributor

Re: Telnet Commands to copy file from Host to Client

Hi,
Try Using the attached file.
Install the software and try exploring it.
It also has ftp for windows.


Regards,

I'll sleep when i am dead.