Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jul 2006 06:59:02 -0400
From:      Gerard Seibert <gerard@seibercom.net>
To:        freebsd-questions@freebsd.org
Subject:   Script File Error
Message-ID:  <20060728064527.1B82.GERARD@seibercom.net>

next in thread | raw e-mail | index | archive | help
I have a script that I located  on the internet and attempted to alter
to suit my personal needs. Since I kind of suck at witting scripts, it
is not working correctly.

When run from the command line, it appears to work fine. However, when
run from CRON, I receive this error message:

[: -a: unexpected operator
/var/db/clamav//phish.ndb.gz is missing. Are you sure that wget is installed?

I am stumped as to why it only appears when run from CRON and not the
command line. I then discovered that if I tried to capture the output
using 'script', the error also appears.

The file is locate here:

http://seibercom.net/logs/test

Perhaps some script guru can decipher this problem for me.

Thanks!


-- 
Gerard Seibert
gerard@seibercom.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060728064527.1B82.GERARD>