1827283 Members
3546 Online
109717 Solutions
New Discussion

usage:sleep time

 
Michael Elleby III_1
Trusted Contributor

usage:sleep time

I have just setup a package for an Oracle database using the Enterprise Cluster Master toolkit (ORACLE.sh)...

The package starts up the database perfectly, but the message:

usage: sleep time

Continues to appear in my package script log until I halt the package.

Any suggestions?
Knowledge Is Power
4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: usage:sleep time

Hi,

The sleep command is likely to be incorrectly used in your script. Search for the sleep command being used in the directory of cluster scripts.

# grep sleep *

Check for invalid syntax. The correct sleep syntax should be:

sleep [no. of seconds]

e.g.

# sleep 60

means sleep for 1 min.

Hope this helps. Regards.

Steven Sim Kok Leong
Michael Elleby III_1
Trusted Contributor

Re: usage:sleep time

Command syntax doesn't 'seem' to be the problem, as I checked all of my cluster scripts, but I'm still looking...

Mike-
Knowledge Is Power
Steven Sim Kok Leong
Honored Contributor

Re: usage:sleep time

Hi,

Try inserting print or echo statements in your scripts. Would help identify whether this error occurred outside or within your scripts. If it is within a script, the command could possibly be in another script called within this script.

Hope this helps. Regards.

Steven Sim Kok Leong
Michael Elleby III_1
Trusted Contributor

Re: usage:sleep time

Steven-

Had to laugh at myself on this one. Had to assign values to the MONITOR_INTERVAL and TIME_OUT variables in ORACLE.sh to eliminate the usage message.

Thought I had already done it, but I missed it.. Thanx for pointing me in the right direction, as looking at each sleep statement made me realize that I needed to look at those variables.

Mike
Knowledge Is Power