how can i create a simple bashscript to copy some files from a server to another?
i've created next script:
but is not working.. when i run the script i get a ftp connection to the serverip (line ncftp -u root -p password serverip ) but next line that shuld copy the files are not runed (get -rf *) 
what i'm doing wrong and how should i do?
i've created next script:
PHP Code:
#! /bin/bash
ncftp -u root -p password serverip
get -rf *
exit
what i'm doing wrong and how should i do?

Comment