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

[ale] shell scripting baby questions...



David S. Jackson wrote:

>># file and path variables
>>reportTime=`date +%y%m%d_%H%M%S`;
>>logName="scan_$reportTime.log";
>>infectedLogName="infected_$reportTime.log";
>>logPath="/home/samba/production/vlogs";
>>dirToScan="/home/samba/production";
> 
> 
> Just FYI, you don't really need the ';' at the end of each line like
> you do in perl.  I don't think it does any harm, except that it might
> confuse you or someone else looking over your source.  You might
> start putting spaces in variable assignments like: blah = "whatever";
> as you would in perl!  :-)

I believe that only works if you use the:

set foo = "bar"

syntax.  At least on my box:

foo = "bar"

yields:

bash: /home/esoteric/shl/foo: Permission denied


-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems inspite of Microsoft