Question
March 19, 2008 at 10:26 AM
alpha_s

Automated FTP Script

by alpha_s . Updated 18 years, 4 months ago

Greetings all. I’ve been trying to automate a task of mine quite unsuccessfully. I recently started using Linux and need to pull some files daily from another server. Can anyone help me. This is the logic of my task. I’m using SUSE 10.1

# ! /bin/bash

ftp 0.0.0.0
username XXXXX
password XXXX
prompt
cd /net-emg
lcd /collector/ER/SMS
find -mmin +2 -mmin -363 | mget PP.*
#new transfer
cd /nel-ecp
lcd /collector/ER/Voice
find -mmin +2 -mmin -363 | mget PP.*
bye
exit

This discussion is locked

All Comments