Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > put command in ftp

put command in ftp
Thread Tools
benschilke
Registered User
Join Date: Jan 2001
Location: new brunswick, nj
Status: Offline
Reply With Quote
Sep 14, 2002, 03:09 PM
 
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.
     
Ganesha
Senior User
Join Date: Jul 2002
Location: Arizona Wasteland
Status: Offline
Reply With Quote
Sep 14, 2002, 03:51 PM
 
Have you tried adding a remote filename? i.e.

put /Users/benjamin/Desktop/java/Names.java Names.java
     
benschilke  (op)
Registered User
Join Date: Jan 2001
Location: new brunswick, nj
Status: Offline
Reply With Quote
Sep 14, 2002, 04:28 PM
 
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.
     
fat mac moron
Grizzled Veteran
Join Date: Sep 2002
Status: Offline
Reply With Quote
Sep 14, 2002, 05:29 PM
 
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
     
kvm_mkdb
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status: Offline
Reply With Quote
Sep 15, 2002, 12:41 AM
 
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 Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 02:11 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,