|
|
Trouble with man "put" in Terminal
|
|
|
|
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status:
Offline
|
|
When I enter man put in Terminal. it says No manual entry for put. Any suggestions?
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status:
Offline
|
|
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:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status:
Offline
|
|
Originally Posted by turtle777
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:
Offline
|
|
Originally Posted by michael180
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
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status:
Offline
|
|
Originally Posted by turtle777
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: Polwaristan
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status:
Offline
|
|
Originally Posted by Cold Warrior
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?
|
|
|
|
|
|
|
|
|
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status:
Offline
|
|
Have you ssh'd into the iPhone? If so you need to exit and then use scp.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status:
Offline
|
|
Originally Posted by Cold Warrior
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
|
|
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.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2005
Location: Santa Cruz, CA
Status:
Offline
|
|
Originally Posted by CharlesS
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: Polwaristan
Status:
Offline
|
|
Originally Posted by CharlesS
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
That works fine . . .
Thanks Charles
paired with something like cyberduck, you can get a gui too.
|
|
|
|
|
|
|
|
|
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status:
Offline
|
|
Originally Posted by michael180
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
|
|
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 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
|
|
|
|
|
|
|
|
|
|
|
|