I have done it in windows, too. I just like the unix world better. The only reason that you may want to run the phantom would be to not tie up the user license. A cron that starts the phantom job is barely even on the system, starts the phantom and then disappears. Sometimes it has come in handy; otherwise, I follow the same thing you are doing. Very clean implementation.
Brad Moll Phone: (763)754-5354 Fax: (763)463-1750 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerry Sent: Friday, March 23, 2007 4:00 PM To: [email protected] Subject: Re: Spam:RE: [U2] Daylight savings time change and SLEEP command That is my preferred method. Build a script that is run at a specific time or time and day that kicks off a U2 process. Not necessarily starting a phantom but starting any regularly run process on UniVerse. If you restart your system you don't have to remember to restart separate phantoms, the cron starts automatically. I think you can do the same thing in Windows using the Windows scheduler but since I have never used U2 on Windows I could be wrong. Jerry ----- Original Message ----- From: "Brad Moll - Incoming News" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Friday, March 23, 2007 3:17 PM Subject: Spam:RE: [U2] Daylight savings time change and SLEEP command > If you want to run something repetitively and are running unix, why not > use > cron to log into universe start the phantom and start your job? That way, > you can control it based on the system time, rather than sleeping for 12 > hours, which will not allow you to run at an explicit time. > > > > Brad Moll > Phone: (763)754-5354 > Fax: (763)463-1750 > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John Hester > Sent: Friday, March 23, 2007 2:39 PM > To: [email protected] > Subject: RE: [U2] Daylight savings time change and SLEEP command > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of Jason Lin >> Sent: Thursday, March 22, 2007 4:24 PM >> To: [email protected] >> Subject: RE: [U2] Daylight savings time change and SLEEP command >> > [snip] >> Is Unix crontab the preferred method to run phantom processes in UV? >> >> Thanks. >> Jason > > That's what I've always used for phantoms that need to repeatedly run on > a set schedule. Just be sure they're launched with the "PHANTOM" > command and not directly from the uv environment, otherwise any 2 uv > cron jobs that overlap will attempt to use the same shared memory > segment. Also, cron processes don't execute /etc/profile or the > particular cron user's profile from the home directory, so things like > umask and any necessary environment variables have to be explicitly > defined. Here's an example of a script that runs a uv phantom from > cron: > > #!/bin/sh > UV=`cat /.uvhome`/bin/uv > umask 002 > cd /uvdata/FABRIC.PROD > $UV "PHANTOM PI0999" >/dev/null 2>&1 > > -John > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
