home *** CD-ROM | disk | FTP | other *** search
- /*c:rx
-
- *****************************************************************************
- * *
- * Example program to check with JM server about system load *
- * *
- *****************************************************************************/
-
-
- options results /* we want to hear about results */
- address jmserver /* connect to JM server's ARexx port */
-
- sysload /* figure out idle cpu time */
- load = result /* we get: load average times 100 */
-
- if load < 50 then say "The system is lightly loaded"
- if load >= 50 & load < 100 then say "The system is moderately loaded"
- if load >= 100 & load < 500 then say "The system is heavily loaded"
- if load >= 500 then say "Maybe you should buy a Cray!"
-
- exit
- end
-