You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Tracey Gates <tg...@yoursummit.com> on 2005/11/14 18:18:07 UTC

Rules Du Jour Script Error

I have followed the installation steps from the Rules Du Jour site
(http://www.exit0.us/index.php?pagename=RulesDuJour) and am trying to
run the script manually but I get the following error:
 
[root@yoursummit sbin]# ./rules_du_jour
: bad interpreter: No such file or directory
 
It doesn't see to like the #!/bin/bash line.  I haven't changed any of
the script and have it executable.  I have my configuration file as
/etc/rulesdujour/config as stated in the installation steps.  I have
also made sure that bash is located in the /bin directory and it is
there.  I am trying to run the script at root so there shouldn't be any
permissions problems.
 
I'm not sure why I'm getting this error or what to do to correct it.
Can someone please help me?
 
Thanks!
 
 
 

  <http://yoursummit.com/Images/scg_logo.jpg> 

Tracey Gates
Lead Developer
 <ma...@yoursummit.com> tgates@yoursummit.com 

1350 South Boulder, Third Floor / Tulsa, OK 74119-3203
Phone 918-663-0991 / Fax 918-663-0840

This communication is intended only for the recipient(s) named above;
may be confidential and/or legally privileged; and, must be treated as
such in accordance with state and federal laws. If you are not the
intended recipient, you are hereby notified that any use of this
communication, or any of its contents, is prohibited. If you have
received this communication in error, please reply to the sender and
then delete the message from your computer system immediately.

 



Re: Rules Du Jour Script Error

Posted by Chris Thielen <cm...@someone.dhs.org>.
Hi Tracey!


Tracey Gates wrote:

> I have followed the installation steps from the Rules Du Jour site 
> (_http://www.exit0.us/index.php?pagename=RulesDuJour_) and am trying 
> to run the script manually but I get the following error:
>  
> [root@yoursummit sbin]# ./rules_du_jour
> : bad interpreter: No such file or directory
>

That is usually due to bad line endings.  Are you using cygwin?  Open 
the file in vi and do:

:set fileformat=unix
:wq

-or-

:set fileformat=dos
:wq

depending on cygwin or not (cygwin == dos, other == unix).

> It doesn't see to like the #!/bin/bash line.  I haven't changed any of 
> the script and have it executable.  I have my configuration 
> file as /etc/rulesdujour/config as stated in the installation steps.  
> I have also made sure that bash is located in the /bin directory and 
> it is there.  I am trying to run the script at root so there shouldn't 
> be any permissions problems.
>  
> I'm not sure why I'm getting this error or what to do to correct it.  
> Can someone please help me?
>
HTH!

Chris