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
michael180
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 9, 2009, 12:45 PM
 
When I enter man put in Terminal. it says No manual entry for put. Any suggestions?
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Nov 9, 2009, 01: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!
     
michael180  (op)
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 11:42 AM
 
I still cannot use put or get, perhaps I'm using the wrong shell.

Thanks
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Nov 14, 2009, 11: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
     
michael180  (op)
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 11: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 . . .
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Nov 14, 2009, 12:06 PM
 
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
     
michael180  (op)
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 12:21 PM
 
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 . . .
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Nov 14, 2009, 12:23 PM
 
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 [email protected]:Movies
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Nov 14, 2009, 12:27 PM
 
Use scp:

scp /directory/filename.ext [email protected]:~/

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
     
michael180  (op)
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 12:37 PM
 
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 [email protected]: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?
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Nov 14, 2009, 12:49 PM
 
Have you ssh'd into the iPhone? If so you need to exit and then use scp.
     
michael180  (op)
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 12:57 PM
 
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?
     
CharlesS
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Nov 14, 2009, 12:57 PM
 
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!
     
michael180  (op)
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status: Offline
Reply With Quote
Nov 14, 2009, 01: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
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Nov 14, 2009, 01: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.
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Nov 14, 2009, 01: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.
     
Simon
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Nov 14, 2009, 01: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.
     
   
 
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 06:27 AM.
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.,