Script File Error

Ivailo Tanusheff i.tanusheff at procreditbank.bg
Fri Jul 28 14:36:31 UTC 2006


My error.
Correct syntax shoud be:

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

-x checks if file exists (which I hope is your case). And makes source 
more clean to read :)

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 17:33
Please respond to
freebsd-questions at freebsd.org


To
freebsd-questions at freebsd.org
cc

Subject
Re: Script File Error






Ivailo Tanusheff wrote:

> Hi,
> 
> You may correct the script by changing:
> 
> if ! [ -a $PHISH ]; then ...
> 
> with:
> 
> if ! [ -x $PHISH ]; then ...

According to this site:

http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html

that would not be correct. Anyway, I corrected it by rewriting it like
this:

if [ ! $PHISH ]; then

The error no longer appears. I am still not sure what was causing it
anyway.

Ciao!


-- 
Gerard Seibert
gerard at seibercom.net


Never argue with a fool. They will lower you to their level and then
beat you with experience.
_______________________________________________
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