logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: Newbie: getting return code from sax.Counter in bash: msg#00067

Subject: Re: Newbie: getting return code from sax.Counter in bash
Jim Anderson wrote:
I am using Xerces in a shell script (bash) on Linux and Mac OS X.
I want to detect if sax.Counter gets a parse error or a 'file not
found' error.  First, I tried this:

    java sax.Counter -v myfile.xml
    echo $?

When I check the value of $? in the shell script, it always comes
back 0, so I cannot use the value to detect an error.

The Xerces samples aren't really meant to be used in production
systems. Even so, it probably would be worthwhile to have them
exit with meaningful status codes.

--
Andy Clark * andyc@xxxxxxxxxx



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo