Operating System - HP-UX
1834817 Members
2595 Online
110070 Solutions
New Discussion

ftp sysinfo to a hpux server

 
SOLVED
Go to solution
khilari
Regular Advisor

ftp sysinfo to a hpux server

Hi people, i wanted to ask as to how to ftp a file from the desktop of a windows machine to an hp-ux server.
Here is what i did.
1)I downloaded a file its on my desktop.
2)Then i ftp to the hpux server.
3)I made a directory on the hpux server
4)ftp> mput 'filename' 'destination directory'
The error i am getting is no such filename. If its on the windows desktop do i have to give a path, because i just typed the filename and the destination directory
Thanks alot.
7 REPLIES 7
Tom Danzig
Honored Contributor

Re: ftp sysinfo to a hpux server

When you run ftp, you are most likely in the c:\Windows directory (the Windows default path for command prompt). Rather than cd'ing to the desktop (the path is long), I would move the file to c:\ and then cd to c:\ before running ftp.
Mark Greene_1
Honored Contributor

Re: ftp sysinfo to a hpux server

Yes, you have to either give it a path or the file has to be in the current directory. Tom gave you a good solution for that.

You also have to set the transfer mode. If it's a text file, after you launch ftp and login to the HP box, do "ascii"; if it's not a text file, do "bin" to set binary transfer mode. You'll also have to be sure to have write permissions in the directory on the HP box to where you are transfering the files.

mark
the future will be a lot like now, only later
khilari
Regular Advisor

Re: ftp sysinfo to a hpux server

S:\>cd c:\

S:\>ftp 142.238.45.46
Connected to 142.238.45.46
220 newPC_LA FTP server (Versi
eb 26 10:46:14 GMT 2004) ready
User (142.238.210.42:(none)):
331 Password required for root
Password:
230 User root logged in.
ftp> put mcsysinfo /sysinfo
mcsysinfo: File not found
ftp>

The mcsysinfo is a script file right now in the c: drive and /sysinfo is the directory I want to put it under in the hpux box
Mark Greene_1
Honored Contributor

Re: ftp sysinfo to a hpux server

After you put in your password and it's accepted do this:

lcd c:\
!dir

and see if the file is in the diretory listing.

mark
the future will be a lot like now, only later
khilari
Regular Advisor

Re: ftp sysinfo to a hpux server

how do i do this ascii and bin thing. I have no clue
Mark Greene_1
Honored Contributor
Solution

Re: ftp sysinfo to a hpux server

after you get logged in do one or the other:

Password:
230 User mgreene logged in.
ftp> ascii
200 Type set to A.
ftp> bin
200 Type set to I.

If this is a script, that's a text file, so do ascii

mark
the future will be a lot like now, only later
Arturo Galbiati
Esteemed Contributor

Re: ftp sysinfo to a hpux server

Hi,
are you sure that the name of your file be without any extension?
type dir mcsysinfo* to be usre about the name.

HTH,
Art