Problems with ftp

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

If move will not work in ftp , can anyone suggest any other alternatives..

hey man try lcd command just before the mget command....like u want to move ur files to c:\desired_path then just add "lcd /c:/desired_path" before mget commnad and plz let me know the results.....

Yes to run system command you can either use ! mark and command name like this,

 !cd /usr/ 

i was aware from this anyway thanks!!!c i hav a problem i need to use `ls -lrt | cut -c ` command at ftp server but as u know cut is not working at ftp server so can u sugess ant alternative for same stuff??? thanks againg and happyf riendship day.,