# cat uvcron.c
/* 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 */
Doug,
First off, it looks like you are missing the # signs on the compiler
directives:
#if UCB
setpgrp(0,getpid());
#else
setpgrp();
#endif
I don't have access to an aix compiler, but this seems to fix it for gcc.
rex
---
u2-users mailing list
...
Cheers,
Wol
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Chanco
Sent: 27 December 2007 13:43
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before?
# cat uvcron.c
/* This c routine can be used to start universe processes
if and else blocks inside
curly brackets, even if they're not needed ...)
Cheers,
Wol
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Chanco
Sent: 27 December 2007 13:43
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before
Of Hona, David S
Sent: Tuesday, December 18, 2007 9:52 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before?
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
That was the problem!
Thanks a million
dougc
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rex Gozar
Sent: Thursday, December 27, 2007 10:01 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] anyone seen this error before?
Doug,
First off
*/
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: u2-users@listserver.u2ug.org
Subject: Re: [U2] anyone seen this error before?
Because that id
]
[mailto:[EMAIL PROTECTED] On Behalf Of doug chanco
Sent: Thursday, December 20, 2007 10:55 AM
To: u2-users@listserver.u2ug.org
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
for from the vendor, the other you use at your own risk.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of doug chanco
Sent: Friday, December 21, 2007 2:55 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] anyone seen this error before?
thanks! but I am
] On Behalf Of Clifton Oliver
Sent: Tuesday, December 18, 2007 3:20 AM
To: u2-users@listserver.u2ug.org
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
Of Clifton Oliver
Sent: Sunday, December 16, 2007 1:38 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] anyone seen this error before?
I don't know about perl, but I am *guessing* that would work. An
early solution (circa 1997/8) was to use a little program written in
C to do the same thing. I've
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
:[EMAIL PROTECTED] On Behalf Of Doug Chanco
Sent: Friday, December 14, 2007 5:00 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before?
Actually I think that's exactly what we are doing!
dougc
You want to make sure you only run UV cron jobs as phantoms
That is the reason for having the cron script use the PHANTOM command.
- Clif
On Dec 15, 2007, at 1:46 PM, John Godzina wrote:
I'm not sure, but wasn't there some discussion a while back stating
that
multiple UV processes initiated via cron would be fine if each process
had their own
Hi Cliff,
Can I also simply wrap the UV process in something that changes the
pgid? (e.g.: the setpgrp command in perl)
John
Clifton Oliver wrote:
That is the reason for having the cron script use the PHANTOM command.
- Clif
On Dec 15, 2007, at 1:46 PM, John Godzina wrote:
I'm not
I don't know about perl, but I am *guessing* that would work. An
early solution (circa 1997/8) was to use a little program written in
C to do the same thing. I've have to search my records or the list
archive to dig that out.
But it begs the question, why not just use PHANTOM? Are you
Actually I think that's exactly what we are doing!
dougc
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Jenkins
Sent: Thursday, December 13, 2007 7:37 PM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before?
Any chance
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug Chanco
Sent: Friday, December 14, 2007 5:00 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before?
Actually I think that's exactly what we are doing!
dougc
You
is why root?
Regards
JayJay
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Hester
Sent: 14 December 2007 21:40
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen this error before?
-Original Message-
From: [EMAIL PROTECTED
Unauthorized access to the tmp directory would be my first guess. The
next would be that the select file was not created in the tmp directory
because it ran out of room.
Jerry Banker
Sr Programmer Analyst
Affiliated Acceptance Corp
Sunrise Beach, MO
1-800-233-8483
www.affiliated.org
What happens when you run the script using the same id from the shell prompt?
What happens when you run the command from the TCL?
- Original Message -
From: Jerry Banker [EMAIL PROTECTED]
Sent: 12/13/2007 03:54 PM CST
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] anyone seen
Any chance you are running a UniVerse foreground task from root crontab on
AIX?
Regards
JayJay
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Doug Chanco
Sent: 13 December 2007 20:49
To: u2-users@listserver.u2ug.org
Subject: [U2] anyone seen this error
22 matches
Mail list logo