procmail
[Top] [All Lists]

(no subject)

2003-06-12 08:50:23
this is my .procmail file

        LOGFILE=$HOME/procmail.log
        LOCKEXT=.lck
        LOCKSLEEP=360
        LOCKTIMEOUT=20


      :0 B: /Big_Brother/attachments/faxsrv/disk/down
        * fax.svcs red
         | perl /Big_Brother/scripts/atch.pl

this is what I get in the log file, which make think everything runs OK:


Subject: !BB - 3216010! faxsrv.svcs - 999132066019027
  Folder: /var/spool/mail/ronenk                                     1243
From bigb(_at_)tau(_dot_)ac(_dot_)il  Thu Jun 12 17:14:55 2003
 Subject: !BB - 9640010! faxsrv.svcs - 999132066019027
  Folder: /var/spool/mail/ronenk                                     1243


what I want to achieve:
I want to procmail pruduce a file name down.lck in: 
/Big_Brother/attachments/faxsrv/disk .
then I want procmail to run a perl script which checks this directory for 
existence of down.lck file, and send mail with predfined attachment to a SMS 
server. 

the LOCKTIMEOUT is ment for delletion of down.lck after 20 sec, so it will not 
send me SMS over & over.
the LOCKSLEEP is ment for recrearion of down.lck after 360 sec.

I need to duplictae this rule for some more servers.

my problem is down.lck doesnt dreated at all, & thus script doesnt work.


please help



 Ronen Kfir
System Administrator
T.A.U Computing Division
Tel: 972-3-6407416
Fax: 972-3-6405158
cellular: 972-55-405910
E-mail: ronenk(_at_)tauex(_dot_)tau(_dot_)ac(_dot_)il










_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>