Ask a Question related to SCO, Design and Development.
-
Jean-Pierre Radley #1
Re: CPIO Backup Return Codes
Michael B typed (on Fri, Jul 18, 2003 at 02:09:12PM -0700):
| Im assuming there is some significance to the return codes that CPIO
| backup generates, however I am not sure what each code means. Is there
| a list that explains the codes in human language?
Its man page says that 0 is success, anything else is failure.
Maybe, maybe, the error codes are actually systgem error codes; if so,
(and unless you and I caould read the source code, we can't know one way
or the other), then 'man S Intro' decodes them to some extent.
--
JP
Jean-Pierre Radley Guest
-
cpio
If system is running, could I sue cpio command to archive file? And, I have an archive xxx.cpio which are archive from /etc directory. How to open... -
CPIO Restore
universe question We have a customer that got some kind of damage to a Universe system which is backed up by the following command.... cd... -
Newbie: batch statements and return codes.
Hi all, I'm trying to work out how I am going to develope some procs and functions within DB2. Usually what I do when playing with code and testing... -
Can't cpio IDS.CPI
Try to do # cpio -icvdumB <IDS.CPI ------------------------------------------ Alexey Sonkin Senior Database Administrator sending to... -
Return Codes From MessageBox in .ASPX ?
Greetings. I've created a simple ASPX form that displays a record from a SQL Server table. I have a "Delete" button on the form. When the user... -
Stephen M. Dunn #2
Re: CPIO Backup Return Codes
In article <9f062509.0307181309.26642e49@posting.google.com > [email]mbitton@cs-dist.com[/email] (Michael B) writes:
$Im assuming there is some significance to the return codes that CPIO
$backup generates, however I am not sure what each code means. Is there
$a list that explains the codes in human language?
The man page, at least on 5.0.5, simply says 0 is success, >0 is
failure.
What codes do you get back? Do any of them match standard error
codes from errno.h?
--
Stephen M. Dunn <stephen@stevedunn.ca>------------------------------------------------------------------>>>----------------> [url]http://www.stevedunn.ca/[/url] <----------------<<<
Say hi to my cat -- [url]http://www.stevedunn.ca/photos/toby/[/url]
Stephen M. Dunn Guest
-
John DuBois #3
Re: CPIO Backup Return Codes
In article <9f062509.0307181309.26642e49@posting.google.com >,
Michael B <mbitton@cs-dist.com> wrote:A cursory search produces:>Im assuming there is some significance to the return codes that CPIO
>backup generates, however I am not sure what each code means. Is there
>a list that explains the codes in human language?
1 - bad argument, inode table full, error reading file list, out of memory,
IO error, etc.
2 - various invokation syntax & bad argument errors, input archive corrupted,
IO error, etc.
4 - User hit 'q' whence asked to select next media
255 - usage error
Other than the above, the exit status is 0 unless you are extracting an
archive, in which case it is equal to the number of archive read IO errors that
occurred. This will only ever be 0 or 1 unless you give -k, in which case it
may be higher.
John
--
John DuBois [email]spcecdt@armory.com[/email] KC6QKZ/AE [url]http://www.armory.com/~spcecdt/[/url]
John DuBois Guest
-
Michael B #4
Re: CPIO Backup Return Codes
> A cursory search produces:
Thanks for the feedback - sometimes I get a 1, sometimes a 4. Most of>
> 1 - bad argument, inode table full, error reading file list, out of memory,
> IO error, etc.
> 2 - various invokation syntax & bad argument errors, input archive corrupted,
> IO error, etc.
> 4 - User hit 'q' whence asked to select next media
> 255 - usage error
>
> Other than the above, the exit status is 0 unless you are extracting an
> archive, in which case it is equal to the number of archive read IO errors that
> occurred. This will only ever be 0 or 1 unless you give -k, in which case it
> may be higher.
>
> John
the time it returns a 0, but lately I have started seeing the 1 and 4
return codes. I was curious as to what they meant. Any idea as to what
is causing each of the codes? Could it be files that are in use or
something similar? Bad backup media? Other? :)
Thanks again for the feedback!
Michael B Guest
-
tony@aplawrence.com #5
Re: CPIO Backup Return Codes
Michael B <mbitton@cs-dist.com> wrote:
>> A cursory search produces:
>>
>> 1 - bad argument, inode table full, error reading file list, out of memory,
>> IO error, etc.
>> 2 - various invokation syntax & bad argument errors, input archive corrupted,
>> IO error, etc.
>> 4 - User hit 'q' whence asked to select next media
>> 255 - usage error
>>
>> Other than the above, the exit status is 0 unless you are extracting an
>> archive, in which case it is equal to the number of archive read IO errors that
>> occurred. This will only ever be 0 or 1 unless you give -k, in which case it
>> may be higher.
>>
>> John>Thanks for the feedback - sometimes I get a 1, sometimes a 4. Most of
>the time it returns a 0, but lately I have started seeing the 1 and 4
>return codes. I was curious as to what they meant. Any idea as to what
>is causing each of the codes? Could it be files that are in use or
>something similar? Bad backup media? Other? :)
Well, why don't you use a GOOD backup program like one of the
supertars - [url]http://aplawrence.com/Reviews/supertars.html[/url] - where
the errors are explained?
--
[email]tony@aplawrence.com[/email] Unix/Linux/Mac OS X resources: [url]http://aplawrence.com[/url]
Get paid for writing about tech: [url]http://aplawrence.com/publish.html[/url]
tony@aplawrence.com Guest
-
John DuBois #6
Re: CPIO Backup Return Codes
In article <9f062509.0307201154.111254e9@posting.google.com >,
Michael B <mbitton@cs-dist.com> wrote:1 could be just about anything - see above.>>> A cursory search produces:
>>
>> 1 - bad argument, inode table full, error reading file list, out of memory,
>> IO error, etc.
>> 2 - various invokation syntax & bad argument errors, input archive corrupted,
>> IO error, etc.
>> 4 - User hit 'q' whence asked to select next media
>> 255 - usage error
>>
>> Other than the above, the exit status is 0 unless you are extracting an
>> archive, in which case it is equal to the number of archive read IO errors that
>> occurred. This will only ever be 0 or 1 unless you give -k, in which case it
>> may be higher.
>>
>> John
>Thanks for the feedback - sometimes I get a 1, sometimes a 4. Most of
>the time it returns a 0, but lately I have started seeing the 1 and 4
>return codes. I was curious as to what they meant. Any idea as to what
>is causing each of the codes? Could it be files that are in use or
>something similar? Bad backup media? Other? :)
Another look at the code shows me that you'll also get exit status 4 if cpio
runs to the end of the tape and there is no tty input available (e.g. if it is
being run from cron).
John
--
John DuBois [email]spcecdt@armory.com[/email] KC6QKZ/AE [url]http://www.armory.com/~spcecdt/[/url]
John DuBois Guest



Reply With Quote

