Dana, I would try both "nice" and a longer "sleep". This was exactly what I was talking about on the runaway process. 80% ... I would get skinned alive... -Keith
Keith Johnson Systems Administrator Programmer / Analyst Lewis-Clark State College (LCSC) 208.792.2510 500 8th Ave. Lewiston, ID 83501 -----Original Message----- From: Dana Baron [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 11:59 AM To: U2-Users Subject: RE: [U2] PHANTOM forever Thanks for the replies. Based on new experience I can now refine my question a bit. I've got the basic functionality working but there is a problem I need to resolve. I have a Unidata Basic program (called MESSAGE_LOOP) that needs to constantly check for messages deposited into a particular directory. It is an endless loop that checks for messages, processes any it finds, sleeps for a second, then does it again. I need to start this process up and leave it running forever. I found the nohup command on Tru64 that executes a script with the following line. udt PHANTOM MESSAGE_LOOP & Works fine for starting up the job. The problem is that the job now gobbles up 80% of the CPU. How can I reduce this process's hunger for CPU so that it can share nicely with others? Should I set the priority lower or should I increase the sleep time inside the program? Dana Baron System Manager Smugglers' Notch Resort ------- u2-users mailing list [EMAIL PROTECTED] http://www.u2ug.org/listinfo/u2-users ------- u2-users mailing list [EMAIL PROTECTED] http://www.u2ug.org/listinfo/u2-users
