Veritas-bu

[Veritas-bu] bpstart_notify tweaking - MAX exit code 256

2003-01-06 19:53:11
Subject: [Veritas-bu] bpstart_notify tweaking - MAX exit code 256
From: jmcdon23 AT csc.com DOT au (James Mcdonald)
Date: Tue, 7 Jan 2003 10:53:11 +1000
Hi

Don't forget that most Unix systems have a max exit code of 256  and in the
range 0-256.
There is no guarantee that values outsid of the range 0 -256 , when given
as argument to the exit statement/system call,  will return the value you
gave it  - the results could be unpredictable.

A quote from  -  Learning the Korn Shell. By Bill Rosenblatt; First
Edition, June 1993. O'Reilly

"Every UNIX command, whether it comes from source code in C, some other
language, or a shell script/function, returns an integer code to its
calling process - the shell in this case-when it finishes. This is called
the exit status. 0 is usually the "OK" exit status, while anything else (1
to 255) usually denotes an error"


Regards
Jim McDonald

This email, including any attachments, is intended only for use by the
addressee(s) and may contain confidential and/or personal information and
may also be the subject of legal privilege. Any personal information
contained in this email is not to be used or disclosed for any purpose
other than the purpose for which you have received it. If you are not the
intended recipient, you must not disclose or use the information contained
in it. In this case, please let me know by return email, delete the message
permanently from your system and destroy any copies.
----------------------------------------------------------------------------------------





"Donaldson, Mark" <Mark.Donaldson AT experianems DOT com>@mailman.eng.auburn.edu
on 01/07/2003 02:58:35 AM

Sent by:    veritas-bu-admin AT mailman.eng.auburn DOT edu


To:    "'Shahar.Shaynis AT ecitele DOT com'" <Shahar.Shaynis AT ecitele DOT 
com>,
       Veritas-bu AT mailman.eng.auburn DOT edu
cc:
Subject:    RE: [Veritas-bu] bpstart_notify tweaking




You can exit any unix script with a non-zero return code to create an
"error".

Just add a number to the "exit" command at the bottom, ie: "exit 1".

...and you'll exit with a return code of 1.  A non-zero return code from
bpstart should prevent the backup from running.  Note, this will result in
an error code for "bpstart_notify failed.".

-M

-----Original Message-----
From: Shahar.Shaynis AT ecitele DOT com [mailto:Shahar.Shaynis AT ecitele DOT 
com]
Sent: Sunday, January 05, 2003 7:00 AM
To: Veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] bpstart_notify tweaking

Hello all!

I read in the NT guild that there is a way of playing with the
bpstart.notify scripts using a file named bpstart_notify.res and %0-%6
status that you can use.

Is there anything I can do on the UNIX side ?

I mean is there anyway i can make the bpstart_notify script exit with error
code so the backup wont run ?

Thanks

Shahar.

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu







<Prev in Thread] Current Thread [Next in Thread>
  • [Veritas-bu] bpstart_notify tweaking - MAX exit code 256, James Mcdonald <=