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

Reply via email to