分类:
2006-06-12 22:45:50
#!/bin/sh FTP_Server=202.118.224.241 File_Dir=/incoming/temp file=$1 Store_Dir=/version Command_File="$FTP_Server.ftp" echo "open 192.168.7.51 21" > $Command_File echo "user username passwd" >> $Command_File echo "bin" >> $Command_File echo "cd $File_Dir" >> $Command_File echo "mput $file" >> $Command_File echo "bye" >> $Command_File ftp -i -in < $Command_File rm -rf $Command_File |
#!/bin/sh FTP_Server=202.118.224.241 File_Dir=/incoming/temp file=$1 Store_Dir=/version Command_File="$FTP_Server.ftp" cat > $Command_File < cd $File_Dir pget $file -o $Store_Dir bye EOF lftp -f $Command_File rm -rf $Command_File |