> -----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/
