Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

How to do a move in FTP

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-29-2005
steiner steiner is offline
Registered User
 
Join Date: Jul 2003
Last Activity: 8 May 2015, 10:07 AM EDT
Location: Saint-Avold - France
Posts: 56
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 Unix and Linux 06-29-2005
vino's Unix or Linux Image
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
 
Join Date: Feb 2005
Last Activity: 12 March 2015, 5:33 AM EDT
Location: Sydney, Down Under
Posts: 2,848
Thanks: 0
Thanked 13 Times in 13 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.. Linux

Vino
Sponsored Links
    #3  
Old Unix and Linux 06-29-2005
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
 
Join Date: Mar 2005
Last Activity: 16 July 2015, 8:07 AM EDT
Location: classification algos
Posts: 3,206
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 Unix and Linux 06-29-2005
zylwyz's Unix or Linux Image
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 1 Time in 1 Post
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 Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 03: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 05:56 PM
scan and move tjmannonline UNIX for Dummies Questions & Answers 3 03-10-2009 06:21 AM
move in ksh mqasim Shell Programming and Scripting 1 11-12-2008 03:35 PM
move from an HP box to Sun Box luker UNIX Benchmarks 4 08-06-2005 05:44 AM



All times are GMT -4. The time now is 08:03 PM.