Date: Fri, 28 Jul 2006 16:33:19 +0300 From: Ivailo Tanusheff <i.tanusheff@procreditbank.bg> To: freebsd-questions@freebsd.org Subject: Re: Script File Error Message-ID: <OFA3B0602E.C9B1D0D3-ONC22571B9.004AC717-C22571B9.004AE1BA@procreditbank.bg> In-Reply-To: <20060728064527.1B82.GERARD@seibercom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@seibercom.net> Sent by: owner-freebsd-questions@freebsd.org 28.07.2006 13:59 Please respond to freebsd-questions@freebsd.org To freebsd-questions@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@seibercom.net _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OFA3B0602E.C9B1D0D3-ONC22571B9.004AC717-C22571B9.004AE1BA>