getandzap and getandmove with iptimer

Iptimer example parameter files file

client:zapclient url:172.XX.160.XX display: type:f template:genericgetandzap match:* fiphdr:#QR:Midlands#QS:Birmingham ignore:/BIRMINGHAM/OUTPUT/EVOUCHER days:M.Tu.W.Th.F.S.Su time: start:00:00 end:23:59 every:10 logon:news passwd:passyyyy dests:output1

client:moveclient url:10.XX.12.XX display: type:f template:genericgetandmove match:*.pdf ignore:GEI fiphdr:#QD:../GEIDump#QR:northeast#QS:newcastle days:M.Tu.W.Th.F.S.Su logon:news passwd:passzzzz dests:output2 time:02:00

USERS file entries

; --------------------------------------------------------------
; Presteligence feeds
; feed to presteligence servers
output1				  DP:localhost	 DQ:2ftp		 SC:no	DC:no
output2		 DP:localhost	 DQ:2ftp2		  SC:no	DC:no

DEST_REDUN entries

pdfgetter		 fip12		  fip13

GENERICGETANDZAP prameter file

;
; 'GENERICGETANDZAP' -
;
; This is a generic ftp parameter file that runs ipftp gets based on information given by iptimer
; See /fip/tables/setup/TIMER.*

; Remote Host - URL/IP Address
remhost:\W0

; Remote Host - Logon
logon:\W6

; Remote Host - Password
password:\W7

; Change directory after logging on?
; Does W2 contain anything?
option:V2		 W2
ftpbefore:\V2fipon-error:abort\$O
ftpbefore:\V2cwd \W2\$O

; Get and delete all files
get-and-zapall:\W1

; Add some extra fipHdr fields
get-extra-fiphdr:SU:\WN\nQU:\WN_\WG#\W3

; Output file destination
dest:\W9

; Log file
logfile:/fip/log/ftp/\$E\$Y\$M\$D.\WN.\WG

; Item log file entry
log-line: \WN  \SN  (size=\$C)

; Which system should be fetching the files?
; 'pdfgetter' will be defined in ~/sys/DEST_REDUN
check-primary-server-for-getfiles:pdfgetter

; *** End ***

GENERICGETANDMOVE parameter file

;
; 'GENERICGETANDMOVE' -
; This is a generic ftp parameter file that runs ftp gets based on 
; information given by iptimer.

; See /fip/tables/setup/TIMER.*

;
; ----------------------------------
; which system should do the getting ?
; see sys/DEST_REDUN
check-primary-server-for-getfiles:pdfgetter
; ----------------------------------

; Remote Host - URL/IP Address
remhost:\W0

; Remote Host - Logon
logon:\W6

; Remote Host - Password
password:\W7

;;cd beforehand ??
option:V2		 W2
ftpbefore:\V2fipon-error:abort\$o
ftpbefore:\V2cwd \W2\$o

; Get all files
get-and-moveall:\W1

remote-done-folder:\QD

; add some extra fipHdr fields
; QR - this is the directory on the presteligence destination machine
; and is based on WHERE the files come from
get-extra-fiphdr:\nSU:\WN\nQU:\WN\nQR:\QR\n

; Output file destination
dest:\W9

; Create a skip list
;skip-files:\WN.\WG

; Log file
logfile:/fip/log/ftp/\$E\$Y\$m\$d.\WN.\WG

; log line entry - filesize to show in log
log-line: \WN  \SN  (size=\$c)

;; ---- end ----------