LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] what does this shell script mean

[ILUG] what does this shell script mean

hrishy samant hrishys at yahoo.co.uk
Wed May 9 09:27:21 IST 2001


hello 

could anybody explain me this shell script

LEVEL=0
 
function set_level
{
 if [ $LEVEL -ne 0 ]
 then
  if [ $LEVEL -ne $1 ]
  then
   echo "Error in determining level of driver!"
   exit 0
  fi
 fi
 LEVEL=$1
}
 
cat dbs.log
grep "Level 1 driver function settings" dbs.log > null
&& set_level 1 
 
# level-2 has larger queries...
grep "allocate_sql_buffer_area size 16000" dbs.log >
null && set_level 2

if [ $LEVEL -eq 0 ]
then
 echo "warning: level of driver not determined;
defaulting to level 1"
 LEVEL=1
fi
exit $LEVEL

can anybody explain what this &&set_level 1 means


____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell