Whenever I've had to create a phantomed loop like this, I always put in a 'kill switch'. This kill switch reads an item from a parameters file. If this item is empty then the program continues to run. If, however, the parameter item contains anything, the program then gracefully terminates itself.
Gordon J. Glorfield Sr. Applications Developer MAMSI (A UnitedHealth Company) 301-360-8839 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Keith Johnson Sent: Monday, May 03, 2004 2:17 PM To: [EMAIL PROTECTED] Subject: RE: [U2] PHANTOM forever Dana, How about trying a cron job or looking in to your inittab man pages? I personally have never wanted to make an infinite loop, however I have made my share on accident. I am sure this type of logic will do the trick but it might just run away and spawn so many jobs that you have no resources or UNIDATA Lic for your users. LOOP PHANTOM {WORK HERE program or PA etc} REPEAT # No conditional # I personally would be very careful with this. One miss step here and you might just regret this later. A better way would likely be researching making the process a daemon... (from my AIX Man pages) Files Reference ---------------------------------------------------------------------------- --- inittab File Purpose Controls the initialization process. Description The /etc/inittab file supplies the script to the init command's role as a general process dispatcher. The process that constitutes the majority of the init command's process dispatching activities is the /etc/getty line process, which initiates individual terminal lines. Other processes typically dispatched by the init command are daemons and the shell. [SNIP] This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. ------- u2-users mailing list [EMAIL PROTECTED] http://www.u2ug.org/listinfo/u2-users
