View Single Post

  #1 (permalink)  
Old 04-29-2008, 01:17 PM
subin subin is offline
Junior Member
User
 
Join Date: Apr 2008
My distro: Debian
Posts: 5
Rep Power: 0
subin is on a distinguished road
Default Run mv command from ftp shell script

Hi all,

I am taking log files every 15 min from remotemachine.
My code is ;
FRONTEND_HOME=/home/hai/jjsjs/Frontend_log
cd /dsd/sds/sdsds/FrontEnd
ftp -n 10.22.144.32 << END_INPUT >> /root/scripts/tracking/ftp_frontend.log 2>&1
user hai hai
asc
cd $FRONTEND_HOME
prompt
mget logger.log.*
bye
END_INPUT


But i need to move the logfiles to other directory(from remotemachine) after my "mget" command .. i tried mv command but its not working ... Help will be highly appreciated..

Thanks
Subin
Reply With Quote