spacer
spacer search

i-Vibe.com
developer resource & tips portal

Search
spacer
Newsflash
01/27/06: I just had some time to cleanup this website. I will add more articles for AJAX this coming weekend.
 
q_key.jpg
Main Menu
Home
Articles
Programming
Networking/Security
Data Modeling
Interface Design
Developer News
Downloads
Links
Login





Lost Password?
No account yet? Register
Related Articles
 
Home arrow Programming arrow Shell Scripts arrow Move Remote Files To A New Path Via FTP
Move Remote Files To A New Path Via FTP Print E-mail
  • Currently 3.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Rating: 3.0/5 (2 votes cast)

Written by Roceller Alvarez   
Saturday, 26 February 2005
This sample shell script code moves remote files to a new path via FTP. Below shows fragment of the code.
COMMANDS=/tmp/"`echo $LOCAL | sed "s/^.*///"`"f
echo "open $HOST" > $COMMANDS
echo "user $USER $PASS" >> $COMMANDS
echo "mkdir $FILEPATH$DATE" >> $COMMANDS
echo "rename $FILEPATH"IMEXTYPE.dat" $FILEPATH$DATE"/IMEXTYPE.dat"" >> $COMMANDS
echo "bye" >> $COMMANDS

RESULTS=/tmp/"`echo $LOCAL | sed “s/^.*///"`"r
ftp -ndv < $COMMANDS | tee $RESULTS

Comments

Only registered users can write comments.
Please login or register.

Powered by AkoComment 2.0!

 
< Prev   Next >
spacer
 
spacer