From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079034715692.tru64-unix-managers.marc@archive.invalid> From: Charles Vachon Date: Tue, 19 Jan 1999 18:29:59 +0000 To: tru64-unix-managers Subject: SUMMARY: vdump return codes X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079034715692 Many thanks to Paul.Casteels for replying to this query. ++*++*++*++*++*++*++*++*++*++*++*++ Original question: Hello SysAdmins, In order to perfect a home-made backup wrapper shell which calls vdump, I'm trying to figure out the return codes output by the vdump command. So far, I have observed the following: 0, if the backup completed without any error or warning. 1, if there was at least one file which could not be backup up, e.g. the file was enlisted when the vdump built it's list of files, then the file no longer exists when vdump tried to backup it up. Calling vdump without any arguments will display it's syntax and also return a code of 1. Are there any other return code values. Specifically, are more severe conditions (e.g. a bad tape) reported using a distinct code? The vdump(8) man page does not even mention the use of return codes. TIA! ++*++*++*++*++*++*++*++*++*++*++*++ Paul's experiences with the vdump return code match mine: it seems that a 0 is returned when all went perfect, and a non-zero (shells output a 1, perl sees a -1) value otherwise. So there is no way in the actual implementation of vdump (as of DU v4.0D) to use the return code to differentiate runs with warnings from ones with more severe conditions. Again, thanks Paul. -- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Charles Vachon tel: (418) 627-6355 x2760 email: cvachon2@mrn.gouv.qc.ca Administrateur de syst=E8me FRCQ/Minist=E8re des Ressources Naturelles du Qu=E9bec =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D