Jim Anderson wrote:

Hi -

I am using Xerces in a shell script (bash) on Linux and Mac OS X.



[snip]

I am currently doing this:

   java sax.Counter -v myfile.xml > stdout.txt 2> stderr.txt

My shell script checks the file size of stderr.txt.  If the file
size is greater than zero, then it contains error messages, so
I assume that sax.Counter has encountered an error and the script
takes appropriate action.

Is this the best way to handle this error, or is there a better way?

Thanks.



There are better ways, but IMO this isn't a Xerces issue. You're best off looking at some bash documentation, or seeking assistance from a bash help group.

James Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to