|
|
put command in ftp
|
|
|
|
Registered User
Join Date: Jan 2001
Location: new brunswick, nj
Status:
Offline
|
|
Does anyone use the 'put' command in ftp on an OS X machine? I'm trying to move a file from my iMac to my school's server via ftp, but it doesn't accept the "local" file (e.g., /Users/benjamin/Desktop/java/Names.java), saying it doesn't exist. I also tried adding "[localhost" to the front of the path name, and that got me the same result.
Does anyone have any suggestions?
Thanks in advance.
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Jul 2002
Location: Arizona Wasteland
Status:
Offline
|
|
Have you tried adding a remote filename? i.e.
put /Users/benjamin/Desktop/java/Names.java Names.java
|
|
|
|
|
|
|
|
|
Registered User
Join Date: Jan 2001
Location: new brunswick, nj
Status:
Offline
|
|
Originally posted by Ganesha:
Have you tried adding a remote filename? i.e.
put /Users/benjamin/Desktop/java/Names.java Names.java
Yes, and it still tells me the path is invalid. I am going to try fetch. Maybe that's the only way with macs.
THANKS.
|
|
|
|
|
|
|
|
|
Grizzled Veteran
Join Date: Sep 2002
Status:
Offline
|
|
Originally posted by benschilke:
Yes, and it still tells me the path is invalid. I am going to try fetch. Maybe that's the only way with macs.
THANKS.
Usually it's your LOCAL location that's invalid... If you're using FTP, you're probably in the console. Unless you cd'ed to another directory, you're in /Users/<login name>. Unless the file you're trying to ftp is under /User/<login name>, you'll get an error. Use the command "lcd" to change directories if you're connected to an ftp site, or just cd to where the file is and start the ftp command from there.
Or say the file is under /User/<login name>/Desktop/Temp you could try
put ~/Desktop/Temp/MyFileName.ext
Hope that helps
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status:
Offline
|
|
Originally posted by benschilke:
Does anyone use the 'put' command in ftp on an OS X machine? I'm trying to move a file from my iMac to my school's server via ftp, but it doesn't accept the "local" file (e.g., /Users/benjamin/Desktop/java/Names.java), saying it doesn't exist. I also tried adding "[localhost" to the front of the path name, and that got me the same result.
Does anyone have any suggestions?
Thanks in advance.
If you say 'put /Users/benjamin/Desktop/java/Names.java' the server expects the directory '/Users/benjamin/Desktop/java/' to exist. This is how FTP works in general - it might be transparent to you when you use a graphical interface...
If you want to 'put' a file that is not in your current directory you need to type 'lcd /Users/benjamin/Desktop/java/' an then 'put Names.java'.
lcd stands for 'local change directory'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|