Ftp / Get Command Usage
Trying to move my .cpp files from a remote unix box
onto my XP desktop. I'm using the ftp command to log in, then I'm using
the get command to copy my .cpp files. The commands get successfully executed,
but I can find the files that are copied. Here is what I do:
get filename.cpp folderNameOnMyCdrive
Try the syntax :
get filename.cpp folderNameOnMyCdrive/filename.cpp
A better solution :
ftp> lcd folderNameOnMyCdrive
ftp> get filename.cpp
I just tried using folderNameOnMyCdrive/filename.cpp
instead of folderNameOnMyCdrive.
The responce I get is " Not a directory".
When I try
lcd folderNameOnMyCdrive
I get the same responce "Not a directory"...
It looks like I'm not connected to my local XP box because
the files are copied into my unix/home directory... ?
Try this:
1. At your XP box, go to the directory you want the file
to keep.
2. Then ftp to the unix box.
3. Get the file you want like this >> get filename.ccp
<<.
4. When finish, disconnect and back to your XP box, you
can find your filename.ccp in the directory you want to keep it.
windoze does not have the right slant on file paths.
e.g., unix p/b/c/d =~ windoze c:\p\b\c\d. Perhaps ftp
follows unix convention. If you are still having problems,
cd folderNameOnMyCdrive
ftp ....
get file.cpp
or
mget *.cpp
Have a Unix Problem
Unix
Forum - Do you have a UNIX Question?
Unix Books :-
UNIX Programming,
Certification, System Administration, Performance Tuning Reference Books
Return to : - Unix
System Administration Hints and Tips
(c) www.gotothings.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
All product names are trademarks of their respective
companies.
The site www.gotothings.com is in no way affiliated with
or endorsed by any company listed at this site.
Any unauthorised copying or mirroring is prohibited.
|