Hi,

Yup, but even that bombs on my system with errors about not being able to
open the lock file.

Running the same test script as root without the sudo works for me, but of
course I don't really want to set qmail-scanner suid root :)

Hence my problem with getting it running. Still mucking with it though.

Regards,

Rick

----- Original Message -----
From: "Keith Hanlan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 6:02 PM
Subject: Re: [Qmail-scanner-general]FW: [Persistentperl-users] Followup to
my STDOUT


On Thu, 13 Mar 2003, Rick Macdougall wrote:
> Wow,
>
> Haven't figured out how to get it to actually run yet from the #! line,
but
> using the qmail-test.sh I get the following.. Notice the user time and sys
> time.

I take it that your problem relates to using suidperl -T instead
of perl itself?  A lazy solution presents itself in the PPerl
testsuite using the QMAIL_QUEUE environment variable and a
wrapper script:

>From t/qmail-scanner.test:
  |(   echo "#!/bin/sh"
  |    echo exec sudo setuidgid qmailq
`pwd`/pperl -T -I`pwd`/blib/lib -I`pwd`/blib/arch -- --anyuser --prefork=1
/var/qmail/bin/qmail-scanner-queue.pl
  |) > "$wrapper"
  |chmod +x $wrapper
  |
  |export QMAILQUEUE="$wrapper"

Keith Hanlan
Ottawa, Canada


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general



-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to