procmail
[Top] [All Lists]

Re: Procmail gramma problem

2002-05-28 16:19:01
On Tue, May 28, 2002 at 06:02:31PM +0200, Marek Wysmulek wrote:
Szanowna grupo.
Dear group

It goes this way

1)
.procmailrc
--------------
:0
|./tester

Make that a full path...

2)
tester
--------------
#!/bin/bash

rm -rf plik*;
touch plik;

Is this file executable?

3)
#$ ls plik
plik

All this tells us is that a file "plik" exists. Not that it was touched by the
last invocation of tester, or that it is empty. Try ls -l instead.

4)
.procmail.log
-------------------
procmail: [32189] Tue May 28 10:20:38 2002
procmail: Executing "./tester"
procmail: [32189] Tue May 28 10:20:38 2002
procmail: Error while writing to "./tester"
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ (?)
procmail: Assigning "LASTFOLDER=./tester"
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (??)

Does anyone know why :

(?) procmail is trying to write something to file "tester".

Read the error as "Error while writing to a pipe whose destination is
"./tester". This chould be for any number of reasons, such as it's idea of the
path to . and yours aren't the same, or tester isn't executable.

(??) treates this file as a folder.

It isn't treating it as a folder, but as a delivery. All deliverys will be
noted as "LASTFOLDER=" in the log.

Courious that te action is produceing this file "plik".

Not at all. That's exactly what you told it to do. Read the man page for
touch. 

        "The touch  utility sets the access and modification times of each
        file. The file operand is created if it does not already exist.

        .
        .

        -c        Do not create a specified  file  if  it  does  not
                  exist.  Do  not write any diagnostic messages con-
                  cerning this condition."

(From the manpage for the Solaris version, as the man page for the GNU version
doesn't explain this, favoring the use of info to man.)

-- 
Andrew Edelstein        -       http://andrew.pure-chaos.com/resume.txt

Please do not reply directly to me, or Cc: me on a reply to a list message.
I'll get my copy from the list.
_______________________________________________
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>