UNIX Programming, Certification, System Administration, Performance Tuning Reference Books
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

Quick Links:
Do you have a UNIX Question?

Unix Home: Unix System Administration Hints and Tips