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 > Applications > Trouble with man "put" in Terminal

Trouble with man "put" in Terminal
Thread Tools
Junior Member
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 9, 2009, 11:45 AM
 
When I enter man put in Terminal. it says No manual entry for put. Any suggestions?
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Nov 9, 2009, 12:04 PM
 
man sftp?

(or man ftp)

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Junior Member
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 10:42 AM
 
I still cannot use put or get, perhaps I'm using the wrong shell.

Thanks
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Online
Reply With Quote
Nov 14, 2009, 10:44 AM
 
uhm, isn't put a FTP command, so you need to enter "ftp" in the shell, then you'd get the ftp prompt, and then you can use put.

-t
     
Junior Member
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 10:51 AM
 
Originally Posted by turtle777 View Post
uhm, isn't put a FTP command, so you need to enter "ftp" in the shell, then you'd get the ftp prompt, and then you can use put.

-t
Yes, I am aware of that. I'm trying SSH into my iPhone. I don't have any trouble getting there, but shouldn't I be able to use put and get once I get there?

Thanks . . .
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Online
Reply With Quote
Nov 14, 2009, 11:06 AM
 
Originally Posted by michael180 View Post
Yes, I am aware of that. I'm trying SSH into my iPhone. I don't have any trouble getting there, but shouldn't I be able to use put and get once I get there?

Thanks . . .
No, put is a ftp shell command, not a Unix command.

You need to use (s)cp to copy files.

-t
     
Junior Member
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 11:21 AM
 
Originally Posted by turtle777 View Post
No, put is a ftp shell command, not a Unix command.

You need to use (s)cp to copy files.

-t
I guess I just don't know enough, when I enter "cp" I get the message "missing destination file operand after `FST_BG.png (finename)".

Thanks though for your help . . .
     
Moderator
Join Date: Jan 2001
Location: Brainstorming a geopolitical pivot
Status: Online
Reply With Quote
Nov 14, 2009, 11:23 AM
 
you need to specify more, like
scp [file] user@device:[folder] then press return

[file] includes the full path
For example, when I scp files from my desktop to my appletv, I do
scp ~/Desktop/*.avi frontrow@appletv.local:Movies
     
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Online
Reply With Quote
Nov 14, 2009, 11:27 AM
 
Use scp:

scp /directory/filename.ext username@x.x.x.x:~/

This will copy filename.ext to the home directory of your remote computer at IP address x.x.x.x

man scp will help, too.

-t
     
Junior Member
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 11:37 AM
 
Originally Posted by Cold Warrior View Post
you need to specify more, like
scp [file] user@device:[folder] then press return

[file] includes the full path
For example, when I scp files from my desktop to my appletv, I do
scp ~/Desktop/*.avi frontrow@appletv.local:Movies
I have the file on my Desktop as well, but when scp it, I get the following message;
cannot stat `/var/root/Desktop/FST_BG.png
It's looks at though it's trying to find my Desktop at the remote location? How do I get it to find the file on my local machine?
     
Moderator
Join Date: Jan 2001
Location: Brainstorming a geopolitical pivot
Status: Online
Reply With Quote
Nov 14, 2009, 11:49 AM
 
Have you ssh'd into the iPhone? If so you need to exit and then use scp.
     
Junior Member
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 11:57 AM
 
Originally Posted by Cold Warrior View Post
Have you ssh'd into the iPhone? If so you need to exit and then use scp.
Yes I've ssh'd into the phone. But if I exit, then how can I get the file into the phone?
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Nov 14, 2009, 11:57 AM
 
Or use sftp instead of ssh. That will give you the FTP interface you are used to, where you can use commands like put and get.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Junior Member
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 12:07 PM
 
Originally Posted by CharlesS View Post
Or use sftp instead of ssh. That will give you the FTP interface you are used to, where you can use commands like put and get.
That works fine . . .

Thanks Charles
     
Moderator
Join Date: Jan 2001
Location: Brainstorming a geopolitical pivot
Status: Online
Reply With Quote
Nov 14, 2009, 12:14 PM
 
Originally Posted by CharlesS View Post
Or use sftp instead of ssh. That will give you the FTP interface you are used to, where you can use commands like put and get.
Originally Posted by michael180 View Post
That works fine . . .

Thanks Charles
paired with something like cyberduck, you can get a gui too.
     
Moderator
Join Date: Jan 2001
Location: Brainstorming a geopolitical pivot
Status: Online
Reply With Quote
Nov 14, 2009, 12:16 PM
 
Originally Posted by michael180 View Post
Yes I've ssh'd into the phone. But if I exit, then how can I get the file into the phone?
the scp command, with the syntax we've suggested, will automatically initiate the ssh login.
     
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Nov 14, 2009, 12:25 PM
 
scp takes care of all the ssh business. You just need to give it the parameters like path to source file, path to destination, IPs, and account.

From the Mac:
scp /path/on/Mac youriPhoneAccount@iPhoneIP:/path/on/Mac

From the iPhone
scp path/on/iPhone yourMacAccount@MacIP:/path/on/Mac

MacIP can of course be something like nameOfMyMac.local since the iMac and iPhone will be on the same subnet.
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:56 PM.
All contents of these forums © 1995-2009 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.4 © 2000-2009, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2