An idea to use..
 
We have linked all three scripts togeather into one and added the below 
section. By doing this I can use the $COMMAND variable to sort out what todo. 
Works greate for us. We have integrations with Tivoli, ARS, TOPCALL in this 
single script. Much easier to maintain and version control.
 
/Roberth
 
###############################################################################
# One script handle all, this routine sort out which is running
###############################################################################
GETCOMMAND1=`echo $0 | sed 's/\// /g'`
ANTAL=`echo $GETCOMMAND1 | wc -w`
COMMAND=`echo $GETCOMMAND1 | cut -f$ANTAL -d" "`
case "$COMMAND" in
        SetScript)
                        COMMAND="NEW"
                        ;;
        UpdateScript)
                        COMMAND="UPDATED"
                        ;;
        ClearScript)
                        COMMAND="CLEARED"
                        ;;
esac
 
  

Roberth Edberg  
Adaptive Systems Architect      
SEB / Group IT   Web:    http://www.seb.se <http://www.seb.se/>         
Systems Management       E-mail:         [EMAIL PROTECTED] <mailto:[EMAIL 
PROTECTED]>   
Rissneleden 110  Voice:  +46 8 639 30 42        
SE-106 40 Stockholm      Mobile:         +46 70 509 30 42       
        Fax:     +46 8 706 60 25        
________________________________

- "Did you know that the first Matrix was designed to be a perfect human world, 
where none suffered; where everyone would be happy. It was a disaster. No one 
would accept the program. Entire crops were lost. Some believed that we lacked 
the programming language to describe your perfect world, but I believe that as 
a species, human beings define their reality through misery and suffering. So 
the perfect world we dreamed, but your primitive cerebrum kept trying to wake 
up from. Which is why The Matrix was redesigned to this...the peak of your 
civilization."
/ Agent Smith {The Matrix}      
 

________________________________

Från: Tabarzadi, Shahla [mailto:[EMAIL PROTECTED] 
Skickat: den 25 september 2008 13:24
Till: spectrum
Ämne: [spectrum] setscript and clearScript



Hi,

Has anybody done integration between spectrum and alarm point. Our SetScripts 
is working fine but we cannot make our ClearScript to work. I am attaching our 
SetScripts.

 

------------------------------------------------------------------------------------------------------

Shahla Tabarzadi
CAO Network Engineering and Configuration Branch
U.S. House of Representatives
202-226-6266 

 


*       --To unsubscribe from spectrum, send email to [EMAIL PROTECTED] with 
the body: unsubscribe spectrum [EMAIL PROTECTED] 


---
To unsubscribe from spectrum, send email to [EMAIL PROTECTED] with the body: 
unsubscribe spectrum [EMAIL PROTECTED]

<<loggaSEB.gif>>

Reply via email to