View Single Post
Old 02-27-2006, 11:09 AM  
alex79
Confirmed User
 
Join Date: Jun 2002
Location: france
Posts: 996
simple "bash scripting" question

how can i create a simple bashscript to copy some files from a server to another?

i've created next script:
PHP Code:
#! /bin/bash
ncftp -u root -p password serverip
get 
-rf *
exit 
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?
__________________
alex79 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote