How to do a move in FTP | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

How to do a move in FTP

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-29-2005
steiner steiner is offline
Registered User
 
Join Date: Jul 2003
Last Activity: 9 July 2014, 8:46 AM EDT
Location: Saint-Avold - France
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
How to do a move in FTP

Hello,

I need to do a move for a file when I am connected to a server with Ftp.

Is that possible ???

Thanks...
Sponsored Links
    #2  
Old 06-29-2005
vino's Avatar
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
 
Join Date: Feb 2005
Last Activity: 9 April 2013, 8:19 AM EDT
Location: Sydney, Down Under
Posts: 2,847
Thanks: 0
Thanked 12 Times in 12 Posts
Two possible situations in this case.

1. You want to move the file you just transferred.
2. You want to move a file which was not transferred.

For 1. you can ftp as follows


Code:
get/put original.file.name new.file.name

i.e. you can decide what name to want to save it as. If, new.file.name is not provided, original.file.name is picked up.

For case 2. I dont know..

Vino
Sponsored Links
    #3  
Old 06-29-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
 
Join Date: Mar 2005
Last Activity: 5 July 2014, 11:14 AM EDT
Location: classification algos
Posts: 3,203
Thanks: 19
Thanked 30 Times in 27 Posts
i presume u r concerned about a move(rename)

you have rename command in FTP (standards)

ftp>help

you will have rename command there
    #4  
Old 06-29-2005
zylwyz's Avatar
zylwyz zylwyz is offline
Registered User
 
Join Date: Jun 2005
Last Activity: 15 May 2006, 12:33 PM EDT
Location: I'm living in Unix :)
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Data

You can use and this too:
$ ftp
ftp > open site.com
lcd ~/uploads # local navigation
put file.c
get file.c
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Awk & Move moe458 Shell Programming and Scripting 7 10-14-2010 04:20 PM
need to move files of particular day from one dir to another dir ss_ss Shell Programming and Scripting 3 03-28-2009 06:56 PM
scan and move tjmannonline UNIX for Dummies Questions & Answers 3 03-10-2009 07:21 AM
move in ksh mqasim Shell Programming and Scripting 1 11-12-2008 04:35 PM
move from an HP box to Sun Box luker UNIX Benchmarks 4 08-06-2005 06:44 AM



All times are GMT -4. The time now is 08:07 AM.