Script File Error

Ivailo Tanusheff i.tanusheff at procreditbank.bg
Fri Jul 28 13:41:28 UTC 2006


Hi,

You may correct the script by changing:

if ! [ -a $PHISH ]; then ...

with:

if ! [ -x $PHISH ]; then ...

Regards,

Ivailo Tanusheff
Senior System administrator
ProCredit Bank (Bulgaria) AD

tel. +359 2 921 7161
fax +359 2 921 7110
http://www.procreditbank.bg


Disclaimer: The information contained in this message is intended solely 
for the use of individual or entity to whom it is addressed and other 
authorized to receive it. It may contain confidential or legally 
privileged information. If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking any 
action in reliance on the contents of this message is strictly prohibited 
and may be unlawful. If you have received this communication in error, 
please notify us immediately by responding to this email and then delete 
it from your system. ProCredit Bank is neither liable for the proper and 
complete transmission of the information contained in this message nor for 
any delay in its receipt. 



Gerard Seibert <gerard at seibercom.net> 
Sent by: owner-freebsd-questions at freebsd.org
28.07.2006 13:59
Please respond to
freebsd-questions at freebsd.org


To
freebsd-questions at freebsd.org
cc

Subject
Script File Error






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 at seibercom.net

_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list