db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean T. Anderson" <...@bristowhill.com>
Subject Re: ij stdout and stderr
Date Wed, 16 Nov 2005 21:52:03 GMT
Xavier Vigouroux wrote:
> Hi,
> 
> I am using ij in a script. In some case the script is not executed 
> correctly (transient PriviledgeException). I would like at least warn 
> user about the problem.
> but, as far as i see, ERROR are printed on stderr instead of stdout.
> 
> Do i need to make a grep "ERROR" or is  there another solution?
> 
> thanks
> 

When I run scripts on UNIX I typically run them like this to capture 
stderr in the output logfile:

    c shell:
    my_script_file >& file.log

    bourne shell:
    my_script_file > file.log 2>&1

does this help?

  -jean

Mime
View raw message