I am monitoring for files named according to the following strings:

716.TXT.C01
716.TXT.C02
716.TXT.C03
716.TXT.C04
716.TXT.C05
718.TXT.C00

The log line includes the path in which they appear, which is :

/ftpdata/path/download/

I can pull these files from the log with the following shell command

cat /logs/xferlog | grep 71[68].TXT.C0

The lines in the log look like :

Tue Aug 23 07:42:27 2011 5 X.X.X.X 676410 /ftpdata/path/download/716.TXT.C01
a n i r userID ftp 0 *

I want to process any file that starts with a 71, followed by a 6 or 8, then
followed by a .TXT.C0. I want to feed the filename, without the path, to a
process called in the action= section. I was thinking something like:

pattern=/ftpdata/siac/download/(71[6|8]\.TXT\.C0[0|1|2|3|4|5])
action=myproc.sh $1

But nothing so far. Any ideas?

-- 
L David Leija
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users

Reply via email to