Main Menu

KB#01000-BLM script incorrect

Title:

BLM script incorrect

Description:

The "compress" command is no longer installed as part of the Linux operating system. 
You can copy the compress program in from an earlier revision of Linux and it will work to uncompress files. 

Additionally the BasisRunLM script has been modified in revision 8.4a to use gzip instead of compress. There is a slight possibility you may encounter an error using this script also - if so please see below for a simple modification to be made to the BasisRunLM to make it work. 

After adding the command to start BLM when the system is booted the /etc/inittab file should have a line like: 
brlm:2345:once:/usr/basis/blmgr/BasisRunLM; # start BASIS License Manager 

Resolution:


BasisRunLM (pre 8.4a): 

# append ".1" to current logfile and compress 
if [ -f "${logfile}" ] 
then 
mv "${logfile}" "${logfile}.1" 
compress -f "${logfile}.1" 
fi 

# end 4) rotate any existing log file, keeps last 10 logfiles around 

BasisRunLM (version 8.4a and beyond) under step 4) should be: 
THE ABOVE SHOULD READ: 
# Not all Unix boxes have compress 
if ! compress -f "${logfile}.1" 1> /dev/null 2> /dev/null 
then 
# compress NOT available, try gzip instead 
gzip -f "${logfile}.1" 
fi 
fi 


# end 4) rotate any existing log file, keeps last 10 logfiles around 
########### 
If you get an error about gzip not finding a file it's possible that the line prior to the 2 fi's is missing ${logfile}. Adding that variable resolves the problem. 
if ! compress -f ".1" 1> /dev/null 2> /dev/null 
then 
# compress NOT available, try gzip instead 
gzip -f ".1" 
SHOULD BE: 
if ! compress -f "${logfile}.1" 1> /dev/null 2> /dev/null 
then 
# compress NOT available, try gzip instead 
gzip -f "${logfile}.1" 



Last Modified: 08/02/2004 Product: License Manager Operating System: Linux

BASIS structures five components of their technology into the BBx Generations.

  Google+ View BASIS LinkedIN ProfileVisit our Twitter Feed Check out our Facebook Public Profile Click to View the BASIS youTube channel