[pca] PCA return codes
Martin Paul
martin at par.univie.ac.at
Wed Oct 22 15:04:07 CEST 2008
Fred Chagnon wrote:
> In my wrapper script for pca, I would like to be able to determine if pca
> finished patching completely, or if it finished prematurely, perhaps due to
> a patch that required an immediate reconfigure reboot. Does pca have
> different return codes for these situations? Where can I see a list of
> possible exit situations?
I've taken the simple approach now, and at last implemented that in the
current development release. From "pca --man":
EXIT STATUS
The following exit values are returned:
0 No error
1 Unknown error
2 Usage error
3 Reboot required to continue patch installation
4 Reboot required
5 Reboot recommended
That should be enough for most wrapper scripts. The future will tell
whether more exit values will be needed/added.
Martin.
More information about the pca
mailing list