[Esd-l] testzip.pl error?

John D. Hardin jhardin at impsec.org
Wed Feb 25 05:55:11 PST 2004


On Wed, 25 Feb 2004, daniel lance herrick wrote:

> On Wed, 25 Feb 2004, Fred Laxton wrote:
> 
> > I just uploaded and installed testzip.pl, and am getting procmail
> > errors.  This is from my mailbox's procmail.log:
> >
> > /etc/procmail/testzip.pl: ^M: command not found
> > /etc/procmail/testzip.pl: use: command not found
> 
> This looks like procmail error messages about perl
> source code. Is procmail trying to interpret the
> perl script?

It looks like a corrupt script - ^M's sound like it's in DOS format,
and my analysis would be it was probably downloaded on a Windows
system and transferred to the mailserver using FTP in binary mode.

It may also have been edited in an editor that "helpfully" breaks long
lines for you without being told to do so...

Things you can try:

1) download the rule directly on the mail server using wget or a
similar tool.

2) transfer it from the Windows workstation using FTP in ASCII mode.

3) edit it with vi, issue the command ":set notextmode", and save the
file (":wq"); this will strip the ^M line endings off.

--
 John Hardin KA7OHZ    ICQ#15735746    http://www.impsec.org/~jhardin/
 jhardin at impsec.org                        pgpk -a jhardin at impsec.org
 key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  "Bother," said Pooh as he struggled with /etc/sendmail.cf, "it never
  does quite what I want. I wish Christopher Robin was here."
				-- Peter da Silva in a.s.r
-----------------------------------------------------------------------
   38 days until the Slovakian Presidential Election


More information about the esd-l mailing list