As it was written on Sep 5, thus Christoph Berg spake:
Christoph: > PATH -->
/export/home/sbirl/bin:/bin:/usr/ucb:/usr/local/bin:/usr/X/bin
Christoph:
Christoph: > % which date
Christoph: > /bin/date
Christoph:
Christoph: I'd check
Christoph: * PATH in- and outside of procmail
When in procmail, the path is as listed above
outside of procmail (tcsh):
% echo $PATH
/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/ucb:/usr/tcb/bin:/usr/opt/networker/bin/:/usr/bin/X11/:/usr/local/java/bin
Christoph: * other 'date' binaries around
find / -type f -name date -ls
49583 9 -r-xr-xr-x 1 root bin 8932 Apr 6 2002 /usr/bin/date
286314 9 -r-xr-xr-x 1 root bin 8984 Apr 6 2002
/usr/xpg4/bin/date
396498 9 -r-xr-xr-x 1 root root 8932 May 23 09:07
/var/adm/sm.bin/date
% file /usr/bin/date /usr/xpg4/bin/date /var/adm/sm.bin/date
/usr/bin/date: ELF 32-bit MSB executable SPARC Version 1, dynamically
linked, stripped
/usr/xpg4/bin/date: ELF 32-bit MSB executable SPARC Version 1, dynamically
linked, stripped
/var/adm/sm.bin/date: ELF 32-bit MSB executable SPARC Version 1, dynamically
linked, stripped
Christoph: * mail server (running procmail) architecture correct for all
binaries in $PATH?
All compiled by hand using gcc 3.2 ; All Solaris 9
Christoph: * /export/home mounted with the 'exec' flag?
From /etc/vfstab
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /export/home ufs 2
yes nosuid,logging
% ls -ldF /export/home/
drwxr-xr-x 13 root root 512 Nov 19 2002 /export/home/
Christoph: Trying to pipe a meassage directly (without sendmail) on your
machine
Christoph: will isolate most of the above problems.
Christoph:
Christoph: $procmail < mbox
Christoph:
Christoph: Christoph
% /usr/bin/procmail < test_procmailrc
procmail: [24490] Fri Sep 5 13:22:40 2003
procmail: Opening "/dev/null"
procmail: Opening "/var/log/procmail.log"
Contents of test_procmailrc (wrote with 'vi')
==============================================
From: Birl <sbirl(_at_)temple(_dot_)edu>
To: Birl <sbirl(_at_)temple(_dot_)edu>
Subject: Testing procmailrc
Calling procmail < test_procmailrc
and awaiting results.
==============================================
Results in .procmail.log
==============================================
LOGNAME --> sbirl
HOME --> /export/home/sbirl
SHELL --> /sbin/tcsh
PATH -->
/export/home/sbirl/bin:/bin:/usr/ucb:/usr/local/bin:/usr/X/bin
SHELLMETAS --> &|<>~;?*[
SHELLFLAGS --> -c
ORGMAIL --> /var/mail/sbirl
MAILDIR --> /export/home/sbirl/mail/
DEFAULT --> /var/mail/sbirl
SENDMAIL --> /usr/lib/sendmail
SENDMAILFLAGS --> -oi
HOST --> concept
COMSAT --> no
PROCMAIL_VERSION --> 3.22
SHELL --> /bin/sh
TO ---> Birl <sbirl(_at_)temple(_dot_)edu>
procmail: No permission to execute "date"
Subject: Testing procmailrc
Folder: Tests- 145
==============================================
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail