RE: [U2] anyone seen this error before?
# 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 */ #define UCB 0 /* set to 0 for System V or 1 for Berkeley */ main (argc, argv, envp) int argc; char *argv[], *envp[]; { if UCB setpgrp(0,getpid()); else setpgrp(); endif /* CHANGE PATH TO MATCH YOUR INSTALLATION */ (void)execve(/usr/ibm/uv/bin/uv,argv,envp); /* We should never come back here */ printf(exec failed \n); exit(-1); } When I try to compile the above code I am getting the following errors: (using both cc and gcc) on aix 5.2 # gcc uvcron.c uvcron.c: In function `main': uvcron.c:17: error: parse error before numeric constant uvcron.c:25: error: parse error before void # My 'c' programming skills are pitiful, can anyone shed any light on the errors and a fix? Thanks, Dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] anyone seen this error before?
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 u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] anyone seen this error before?
Replying again ... Having looked at the previous email, I notice that the if/else/endif was originally #if/#else/#endif. Those #'s are important ... ignore my previous solution and put the #s back. Oh - and whether UCB is 1 or 0 - do man setpgrp and hopefully the answer will be obvious ... 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 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 setpgrp(0,getpid()); else setpgrp(); endif /* CHANGE PATH TO MATCH YOUR INSTALLATION */ (void)execve(/usr/ibm/uv/bin/uv,argv,envp); /* We should never come back here */ printf(exec failed \n); exit(-1); } When I try to compile the above code I am getting the following errors: (using both cc and gcc) on aix 5.2 # gcc uvcron.c uvcron.c: In function `main': uvcron.c:17: error: parse error before numeric constant uvcron.c:25: error: parse error before void # My 'c' programming skills are pitiful, can anyone shed any light on the errors and a fix? Thanks, Dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] anyone seen this error before?
My C skills are rusty, but I think the two errors are 1) a misplaced curly brace - it's procedure (args) { body } so move the first curly brace between the arguments and the variable declarations. 2) C doesn't have endif - get rid of it. (Oh - and good programming practice - always put your 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? # 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 */ #define UCB 0 /* set to 0 for System V or 1 for Berkeley */ main (argc, argv, envp) int argc; char *argv[], *envp[]; { if UCB setpgrp(0,getpid()); else setpgrp(); endif /* CHANGE PATH TO MATCH YOUR INSTALLATION */ (void)execve(/usr/ibm/uv/bin/uv,argv,envp); /* We should never come back here */ printf(exec failed \n); exit(-1); } When I try to compile the above code I am getting the following errors: (using both cc and gcc) on aix 5.2 # gcc uvcron.c uvcron.c: In function `main': uvcron.c:17: error: parse error before numeric constant uvcron.c:25: error: parse error before void # My 'c' programming skills are pitiful, can anyone shed any light on the errors and a fix? Thanks, Dougc --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] anyone seen this error before?
I have one question about this 'c' program #define UCB 0 /* set to 0 for System V or 1 for Berkeley */ What should the above be set to? We are running aix 5.2, my gut feeling is System V Thanks, Dougc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 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 S Sent: Thursday, January 19, 2006 9:02 PM To: 'u2-users@listserver.u2ug.org' 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: 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 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. -- Regards, Clif --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- This message has been scanned for viruses and dangerous content by SecureMail, and is believed to be clean. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re[2]: [U2] testing
MAJ, Of course a simpler method would to be for users to use a email client that can perform threading .. even may web based ones can do that Of course if people don't read first nothing can help DSig Monday, December 24, 2007, 10:28:42 AM, you wrote: MP Perhaps this is why this forum may like a single thread method (like MP Raining Data's D3, Mvbase etc). MP 5 of the responses were identical to the Phantom on Universe question and MP PH answer. MP Had the first reply said PH, the other four would have already seen PH MP and not bothered. This ain't a quiz and with everyone complainig about MP bandwidth, cycles and extraneous email clutter, this would be a great step MP in the reduction of all MP Have a Merry Christmas. MP My 1 cent MP Mark Johnson MP - Original Message - MP From: Perry Taylor [EMAIL PROTECTED] MP To: u2-users@listserver.u2ug.org MP Sent: Monday, December 24, 2007 12:56 PM MP Subject: Re: [U2] testing Output is saved to the PH file. Include the SQUAWK keyword in your MP PHANTOM command to get the specific item I'd Perry - Original Message - From: [EMAIL PROTECTED] MP [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org u2-users@listserver.u2ug.org Sent: Mon Dec 24 11:39:00 2007 Subject: RE: [U2] testing A wonderous and happy holidays to all! If anyone happens to be reading this list , I do have one universe phantom question Is there anyway to see what a phantom did? At my last job there was a way to see phantom output (it wrote to a phantom log file, if you started the phantom with logging) Hopefully there is something similar in universe (10.1) Thanks, Dougc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of gerry-u2ug Sent: Monday, December 24, 2007 10:34 AM To: u2-users@listserver.u2ug.org Subject: [U2] testing hohoho --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- This message has been scanned for viruses and dangerous content by SecureMail, and is believed to be clean. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is MP 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 MP 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 MP copies of the original message. --- -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ Nearly all men can stand adversity, but if you want to test a man's character, give him power. -- Abraham Lincoln(1809-1865) --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] anyone seen this error before?
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, 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 u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- This message has been scanned for viruses and dangerous content by SecureMail, and is believed to be clean. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: Re[2]: [U2] testing
Like many on this forum, I get around 80 emails a day. They are sorted by date/time and if I read a u2-post on the email at 2:00 pm that says What is 1+1?, I may react and reply to it without reading the answer on the 3:00pm email (and 3:05 and 3:10 and 3:15 etc). I may have gotten some ebay emails at 2:05, some enhancement emails at 2:10, an offer to help a rich African dignatary at 2:15, etc etc. Part of the volume are the excessive answers. On the D3 forum (available anywhere and not just on an email client), you can see the date of the last post to a thread. Plus, you will see the complete thread's content, no more, no less. So when someone earlier replies to the question What is 1+1, you can see if someone else responded with 2. My 1+1 cents Mark Johnson - Original Message - From: David Tod Sigafoos [EMAIL PROTECTED] To: MAJ Programming u2-users@listserver.u2ug.org Sent: Thursday, December 27, 2007 11:36 AM Subject: Re[2]: [U2] testing MAJ, Of course a simpler method would to be for users to use a email client that can perform threading .. even may web based ones can do that Of course if people don't read first nothing can help DSig Monday, December 24, 2007, 10:28:42 AM, you wrote: MP Perhaps this is why this forum may like a single thread method (like MP Raining Data's D3, Mvbase etc). MP 5 of the responses were identical to the Phantom on Universe question and MP PH answer. MP Had the first reply said PH, the other four would have already seen PH MP and not bothered. This ain't a quiz and with everyone complainig about MP bandwidth, cycles and extraneous email clutter, this would be a great step MP in the reduction of all MP Have a Merry Christmas. MP My 1 cent MP Mark Johnson MP - Original Message - MP From: Perry Taylor [EMAIL PROTECTED] MP To: u2-users@listserver.u2ug.org MP Sent: Monday, December 24, 2007 12:56 PM MP Subject: Re: [U2] testing Output is saved to the PH file. Include the SQUAWK keyword in your MP PHANTOM command to get the specific item I'd Perry - Original Message - From: [EMAIL PROTECTED] MP [EMAIL PROTECTED] To: u2-users@listserver.u2ug.org u2-users@listserver.u2ug.org Sent: Mon Dec 24 11:39:00 2007 Subject: RE: [U2] testing A wonderous and happy holidays to all! If anyone happens to be reading this list , I do have one universe phantom question Is there anyway to see what a phantom did? At my last job there was a way to see phantom output (it wrote to a phantom log file, if you started the phantom with logging) Hopefully there is something similar in universe (10.1) Thanks, Dougc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of gerry-u2ug Sent: Monday, December 24, 2007 10:34 AM To: u2-users@listserver.u2ug.org Subject: [U2] testing hohoho --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ -- This message has been scanned for viruses and dangerous content by SecureMail, and is believed to be clean. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is MP 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 MP 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 MP copies of the original message. --- -- DSig ` David Tod Sigafoos ( O O ) ___oOOo__( )__oOOo___ Nearly all men can stand adversity, but if you want to test a man's character, give him power. -- Abraham Lincoln(1809-1865) --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/