xiii
Cisco Content Services Switch Administration Guide
OL-5647-02
Contents
Using Arrays 8-22
Element Numbers 8-23
Using var-shift to Obtain Array Elements 8-24
Capturing User Input 8-26
Using Command Line Arguments 8-27
Using Functions 8-28
Passing Arguments to a Function 8-28
Using the SCRIPT_PLAY Function 8-30
Bitwise Logical Operators 8-30
Syntax Errors and Script Termination 8-31
Syntax Errors 8-31
Script Exit Codes 8-32
Exiting a Script Within Another Script 8-34
Using the grep Command 8-34
Specifying Line Numbers for Search Results 8-35
STATUS Results from the grep Command 8-35
Using socket Commands 8-36
socket connect 8-36
socket send 8-37
socket receive 8-38
socket waitfor 8-39
socket inspect 8-40
socket disconnect 8-40
Socket Administration 8-41
Displaying Scripts 8-42
Script Upgrade Considerations 8-43
Using the showtech Script 8-43
Script Keepalive Examples 8-45