jcs:sleep()
Syntax
jcs:sleep(seconds<,millis>)Description
Cause the script to sleep for a specified period. You can use this function to help determine how a routing component is working over time. To do this, write a script that issues a command, calls the
jcs:sleep()function, and reissues the same command. Themillisargument is optional.Usage Examples
In this example,
jcs:sleep(1)means one second andjcs:sleep(0, 10)means ten milliseconds.<xsl:variable name="ignore" select="jcs:sleep(1)"/><xsl:variable name="ignore" select="jcs:sleep(0, 10)"/>jcs:sysctl()
Syntax
jcs:sysctl("expression","i") jcs:sysctl("expression","s")Description
Return the value of the given expression or object as a string or an integer.
Attributes
s—Specifies a string.
Default:sUsage Example
var $value = jcs:sysctl("kern.hostname", "s");