Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can anyone help on file transfer via sftp

Status
Not open for further replies.

HHG

Technical User
Nov 8, 2003
68
GB
There are some files on a web site which I need to retreive but as I am retrieving these files I assume using 'get' as soon as I have got this file I want to rename the file.

The idea is:-
sftp onto server
cd into directory
get files
rename files
exit sftp

I will be very grateful for any kind of help.
Thanks in advance.
 
Do you mean rename the file on the source server or at your destination?

I want to be good, is that not enough?
 
rename them on the source server after I have retreived the orignal file on to my unix server (solaris 10)
 
Not sure about all flavours, but vanilla ftp allows the 'rename' command. Perhaps (because of it's nature?) sftp doesn't.

I want to be good, is that not enough?
 
if sftp works then scp probably works so can you use something like
Code:
scp user@remote_host:/path/to/remote/file /path/to/renamed/file
or am I missing something?

Ceci n'est pas une signature
Columb Healy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top