[url]http://www.stevedunn.ca/[/url] <----------------<<<[/quote][/quote][/quote] ------------------------------------------------------------------ Say hi to my cat -- [url]http://www.stevedunn.ca/photos/toby/[/url] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => <9f062509.0307181309.26642e49@posting.google.com> [htmlstate] => on_nl2br [postusername] => Stephen M. Dunn [ip] => stephen@stevedu [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> CPIO Backup Return Codes - SCO

CPIO Backup Return Codes - SCO

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. -- ...

  1. #1

    Default 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

  2. #2

    Default Re: CPIO Backup Return Codes

    In article <9f062509.0307181309.26642e49posting.google.com > [email]mbittoncs-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 <stephenstevedunn.ca>
    >>>----------------> [url]http://www.stevedunn.ca/[/url] <----------------<<<
    ------------------------------------------------------------------
    Say hi to my cat -- [url]http://www.stevedunn.ca/photos/toby/[/url]
    Stephen M. Dunn Guest

  3. #3

    Default Re: CPIO Backup Return Codes

    In article <9f062509.0307181309.26642e49posting.google.com >,
    Michael B <mbittoncs-dist.com> wrote:
    >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?
    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
    --
    John DuBois [email]spcecdtarmory.com[/email] KC6QKZ/AE [url]http://www.armory.com/~spcecdt/[/url]
    John DuBois Guest

  4. #4

    Default Re: CPIO Backup Return Codes

    > 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? :)
    Thanks again for the feedback!
    Michael B Guest

  5. #5

    Default Re: CPIO Backup Return Codes

    Michael B <mbittoncs-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]tonyaplawrence.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

  6. #6

    Default Re: CPIO Backup Return Codes

    In article <9f062509.0307201154.111254e9posting.google.com >,
    Michael B <mbittoncs-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? :)
    1 could be just about anything - see above.

    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]spcecdtarmory.com[/email] KC6QKZ/AE [url]http://www.armory.com/~spcecdt/[/url]
    John DuBois Guest

Similar Threads

  1. cpio
    By cljlk in forum Linux / Unix Administration
    Replies: 0
    Last Post: April 12th, 05:26 PM
  2. CPIO Restore
    By Concerned3 Netizen in forum Linux / Unix Administration
    Replies: 2
    Last Post: January 4th, 08:32 AM
  3. Newbie: batch statements and return codes.
    By Derek Clarkson in forum IBM DB2
    Replies: 0
    Last Post: August 15th, 06:16 AM
  4. Can't cpio IDS.CPI
    By Alexey Sonkin in forum Informix
    Replies: 3
    Last Post: August 1st, 06:36 PM
  5. Return Codes From MessageBox in .ASPX ?
    By zgraf in forum ASP.NET General
    Replies: 0
    Last Post: June 24th, 06:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139