Delay escript execution using sleep() function in Windows and Unix
(Doc ID 541719.1)
Last updated on MARCH 12, 2021
Applies to:Siebel Tools - Version 22.214.171.124  and later
Oracle Solaris on SPARC (64-bit)
Product Release: V7 (Enterprise)
Version: 126.96.36.199 
Database: Oracle 188.8.131.52
Application Server OS: Sun Solaris 8
Database Server OS: HP-UX 11.0
This document was previously published as Siebel SR 38-1042896367.
Checked for relevance on 3-Aug-2018
How do you implement a sleep function in escript - we have a need to code a polling loop in eScript as follows:
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
|Solution implemented DLL on Window platform / on Unix platform:|
For compiling the so file on Solaris, the customer has used the Doc ID 476274.1: Calling a shared library from eScript available on SupportWeb, but has added the following flags:
Full line for the link step was:
gcc libtest.o -static-libgcc -shared -o libtest.so
Generic eScript code for using on both platforms (Windows and Unix):