One disadvantage to using PHANTOM is the challenges required to retrieve
the output from the program. For example, suppose you needed to get
some piece of data from UniVerse to use in a shell script, say the email
address to which to mail a report. The BASIC program MAILTO.LOOKUP does
the lookup and CRT's the email address. Using uvcron you could do the
following...
mail_to=$(cd $your_uv_account_dir && uvcron 'RUN BP
MAILTO.LOOKUP')
This would be much more difficult to retrieve if MAILTO.LOOKUP were run
as a PHANTOM.
Perry
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of doug chanco
Sent: Thursday, December 20, 2007 10:55 AM
To: [email protected]
Subject: Re: [U2] anyone seen this error before?
thanks! but I am curious is this a better solution than just using
PHANTOM in the shell script?
dougc
Hona, David S wrote:
> Here is Dave Church's solution/workaround to address the long
> outstanding UV & cron issue, it's a little C program...
>
> -----Original Message-----
> From: Hona, David S
> Sent: Thursday, January 19, 2006 9:02 PM
> To: '[email protected]'
> Subject: RE: [U2] [UV] Calling Universe from CRON
>
> I believe that issue is still there...haven't check lately...
>
> Dave Church wrote & posted this C code on Info-Ardent and in
> comp.databases.pick to solve the problem...
>
>
> /* This c routine can be used to start universe processes
> in cron or at. Normally only one process can run at a
> time because they use the same printer memory segment.
> simply replace the 'uv' command with 'uvcron' for example:
> uvcron 'BATCH-REPORT1' > dave.mail */ #define UCB 0 /* set to 0
for
> System V or 1 for Berkeley */ main (argc, argv, envp) int argc; char
> *argv[], *envp[]; { #if UCB
> (void)setpgrp(0,getpid());
> #else
> (void)setpgrp();
> #endif
> /* CHANGE PATH TO MATCH YOUR INSTALLATION */
> (void)execve("/u1/uv/bin/uv",argv,envp);
> /* We should never come back here */
> printf("exec failed \n");
> exit(-1);
>
>
>
> }
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Clifton
Oliver
> Sent: Tuesday, December 18, 2007 3:20 AM
> To: [email protected]
> Subject: Re: [U2] anyone seen this error before?
>
> Because that id is used to determine the id of the printer memory
> segment for the process. If you have two UV processes with the same
> gpid, they end up sharing the memory segment. This is where your MFILE
> structures are stored (rotating file pool), among other things.
> Pointers get mixed up, and you end up getting some files data written
> into a completely different file, usually corrupting the group or even
> the file header, depending on how angry the computer gods are that
day.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. ZirMed, Inc. has strict policies regarding the
content of e-mail communications, specifically Protected Health Information,
any communications containing such material will be returned to the originating
party with such advisement noted. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/