Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: cpio WARNING
- To: tlug@example.com
- Subject: Re: tlug: cpio WARNING
- From: Scott Perlman <perlman@example.com>
- Date: Tue, 27 Oct 1998 09:48:32 +0900
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <Pine.LNX.3.96LJ1.1b7.981026171011.20295i-100000@example.com>; from Scott Stone on Mon, Oct 26, 1998 at 05:10:47PM +0900
- References: <19981026165905.B26451@example.com> <Pine.LNX.3.96LJ1.1b7.981026171011.20295i-100000@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
Scott Stone did state upon Mon, Oct 26, 1998 at 05:10:47PM +0900: > On Mon, 26 Oct 1998, Scott Perlman wrote: > > > Please, do NOT exit(0) > > > > Ayone depending on cpio -c for a backup mechanism will happily use the > > scripts they have gotten debugged and working forever, and as cpio > > succeeds will not know things went wrong. > > > > Give an exit code that makes more sense. > > > > (also make sure tyou print to STDERR not STDOUT) > > Good points all, thanks. exit(1) is probably better. My pleasure. I don't know enough about cpio to know if its error codes generally are informative. If so you'll want to pick a new code. At least in my perl I tend to define $NO_FILE=1; $BAD_SYNTAX=2; $USAGE=3; And then ' exit $BAD_SYNTAX ' upon afailed config file or whatnot. -Scott -- I don't know if there is method to my madness or madness to my method, BUT you can bet your life there's madness in there somewhere!! =====perlman@example.com --------------------------------------------------------------- Next Nomikai: 20 November, 19:30 Tengu TokyoEkiMae 03-3275-3691 Next Technical Meeting: January, 1999 (details TBA) --------------------------------------------------------------- Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp
- References:
- Re: tlug: cpio WARNING
- From: Scott Perlman <perlman@example.com>
- Re: tlug: cpio WARNING
- From: Scott Stone <sstone@example.com>
Home | Main Index | Thread Index
- Prev by Date: RE: tlug: Updating the TLUG FAQ
- Next by Date: Re: tlug: Re: O"Reilly perl Books
- Prev by thread: Re: tlug: cpio WARNING
- Next by thread: tlug: 10 year anniversary of the Morris worm
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links