procmail
[Top] [All Lists]

Technical question

1998-04-15 09:14:41
Dear Sir/Madam

I am trying to configure procmail to execute a UNIX program
(/usr/local/bin/qpage) when it finds a matching pattern. Please find
below a copy of the .procmailrc file 

As you will see in the .procmailrc file below, two actions are performed
on a successful pattern match.

        1. Create a file in the alert sub-directory and send the output to this
file
        2. Invoke the pager command ( qpage )

The first action is successful but the second one always comes back with
the message 
"/bin/ksh: /usr/local/bin/qpage: cannot execute".

The user running procmail has privilege to execute this command and is
able to do so from the UNIX shell prompt.

The following line is present in the .forward file
"|IFS=' ' && p=/home/gf845/bin/procmail && test -f $p  && exec $p -Yf-
|| exit 75 # gf845"

Please let me know what I am doing wrong

Look forward to your reply and thanking you in advance

Yours sincerely

Ganesh
============================= . procmailrc file
========================================
MAILDIR=/var/mail                       # This directory should exist
LOGFILE=$HOME/pmbox/procmaillog         # recommended
TESTDIR=$HOME/pmbox/tmbox               # Test mail folder
LOGABSTRACT=all
ALERTBOX=$HOME/pmbox/alert              # ESM policy alerts
DATE_TIME=`date '+%d%m%Y_%H%M%S'`
QPAGE=/usr/local/bin/qpage

:0
* ^Subject:.*Enterprise Security Manager policy run.*$
{
        :0 B D
        * ^.*Domain:.*ics_hosts.*$
        {
                :0 Bbfc
                * [a-z]* .*level:.*Red.*$
                ${ALERTBOX}_${DATE_TIME}
        
                :0 A
                | $QPAGE -p testpager -i >/dev/null

        }
}
==================================== End
========================================

<Prev in Thread] Current Thread [Next in Thread>
  • Technical question, Ganesh.SWAMINATHAN <=