db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xavier Vigouroux <Xavier-Francois.Vigour...@Sun.COM>
Subject Re: ij stdout and stderr
Date Thu, 17 Nov 2005 14:19:28 GMT

Le 16 nov. 05, à 22:52, Jean T. Anderson a écrit :

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

the problem is the other way....both streams are merged (there is no 
stderr)....
So I had to "grep" the stdout to extract errors and then redirect it to 
  stderr

>    c shell:
>    my_script_file >& file.log
>
>    bourne shell:
>    my_script_file > file.log 2>&1
>
> does this help?
>
>  -jean
>
-- 
Xavier VIGOUROUX - sun microsystems


Mime
View raw message