[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PHP From address and spam



then change the location to

/var/qmail/control/{more,}rcpthosts ...

rudementery question that wasen't required...

- Zac

On Thu, 01 Dec 2005 12:13:09 +0800, "D E" <david55@xxxxxxx> wrote:
> 
> Thanks,  I was using an old version of bash.  I changed to bash2 and 
> that error was corrected.
> 
> I am now getting an error in the last part of the code.  Here is the code.
> 
> # make sure the fromdomain is in rcpthosts
> if grep "^$fromdomain$" /var/qmail/{more,}rcpthosts >/dev/null ;    then
> /var/qmail/bin/sendmail "$@" <$tmpfile
> rm $tmpfile
> else
> rm $tmpfile
> exit -1
> fi
> 
> Here is the error.
> 
> grep: /var/qmail/morercpthosts: No such file or directory
> grep: /var/qmail/rcpthosts: No such file or directory
> 
> My file is located at /var/qmail/control/rcpthosts
> 
> Thanks for all your help,
> 
> - Dave
> 
>> 
>> On Mon, 2005-11-28 at 00:34 -0500, Kyle Wheeler wrote:
>> 
>> > Looks like you aren't using bash.
>> 
>> Could be an old version, pre-bash-2.0 doesn't understand
>> arrays.  getopt also returns parameters as quoted strings,
>> you'll need something like from=`eval echo ${args[1]}`.
>> 
>> Rick.
> 
> 
> -- 
> ___________________________________________________
> Play 100s of games for FREE! http://games.mail.com/