SPUG: Inspired, broken.
Tim Maher
tim at consultix-inc.com
Wed Feb 9 13:36:01 PST 2005
On Wed, Feb 09, 2005 at 01:27:48PM -0800, Atom Powers wrote:
> >
> This doesn't work: ( I apologize for the line breaks )
>
> apowers at hermes0:/home/mailman> sudo -u mailman perl5 -wnl -e
> 'm/\w+\@\w+\.\w{3}/ and print "\L$&\E OK";' address_list.txt >
> recipients.txt
> recipients.txt: Permission denied.
Apparently the mailman ID is attempting a write to the
current directory, and it doesn't have permission there,
so use a directory it can write to; for example:
sudo -u mailman perl5 -wnl -e 'command' infile > /tmp/outfile
--
*--------------------------------------------------------------------------*
| Tim Maher, PhD (206) 781-UNIX (866) DOC-PERL (866) DOC-UNIX |
| tim(AT)Consultix-Inc.Com http://TeachMePerl.Com http://TeachMeUnix.Com |
*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
| Watch for my upcoming book: "Minimal Perl for UNIX/Linux People" |
*--------------------------------------------------------------------------*
More information about the spug-list
mailing list