jdcmwilson
Well Known Member
JDE List,
I am attempting to use AutoSys (a Unix scheduling package from CA) in
conjunction with OneWorld and am having quite good success. I just have one
issue that I am hoping someone can help me with.
AutoSys only has the capability to handle errors in the following way:
There is a parameter that is called "Maximum Exit Code for Success" within
AutoSys and this works great when an Exit Code of 0 mean "success" and maybe
Exit Code of 1 means "failure". Because you have to set a Maximum, OneWorld
doesn' report to AutoSys successfully because in OneWorld a 0 is "success"
and a 1 is "failure". I would like to set my $? variable in a script so
that if OneWorld is successful I change it to a 1 and if it fails I change
it to a 0 so that AutoSys can handle the jobs successfully.
I know this is probably confusing, but the bottom line is I need to know how
to write a unix script (ksh) that changes my Exit Code of a 1 (success) to a
0 and changes 0s to 1 (or something higher).
Please advise if anyone has any ideas.
James Wilson
CNC Consultant
OW Xe B73.3.3 SP16 AIX
IBM RS/6000 AIX 4.3.3 Enterprise Server (Central Objects)
Oracle DB 8.1.6.3
NT 4.0 Deployment Server
"fat" Win95/Win98 and TSE/Citrix "thin" clients
ZenWorks - using to deploy initial OneWorld clients
All views are expressly my own and in no way reflect those of my employer.
I am attempting to use AutoSys (a Unix scheduling package from CA) in
conjunction with OneWorld and am having quite good success. I just have one
issue that I am hoping someone can help me with.
AutoSys only has the capability to handle errors in the following way:
There is a parameter that is called "Maximum Exit Code for Success" within
AutoSys and this works great when an Exit Code of 0 mean "success" and maybe
Exit Code of 1 means "failure". Because you have to set a Maximum, OneWorld
doesn' report to AutoSys successfully because in OneWorld a 0 is "success"
and a 1 is "failure". I would like to set my $? variable in a script so
that if OneWorld is successful I change it to a 1 and if it fails I change
it to a 0 so that AutoSys can handle the jobs successfully.
I know this is probably confusing, but the bottom line is I need to know how
to write a unix script (ksh) that changes my Exit Code of a 1 (success) to a
0 and changes 0s to 1 (or something higher).
Please advise if anyone has any ideas.
James Wilson
CNC Consultant
OW Xe B73.3.3 SP16 AIX
IBM RS/6000 AIX 4.3.3 Enterprise Server (Central Objects)
Oracle DB 8.1.6.3
NT 4.0 Deployment Server
"fat" Win95/Win98 and TSE/Citrix "thin" clients
ZenWorks - using to deploy initial OneWorld clients
All views are expressly my own and in no way reflect those of my employer.