Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Francisco Huezo — — source: Informix-list mailing list archive (1991-1998)
Maybe you should try this on kron shell:
dbaccess sysmaster - << EOF > MyOutputFile 2>&1
select name
from sysdatabases
where name not in ("sysmaster","sysutils")EOF
Huy Vu wrote:
> Hi all,
>
> I'm trying to hide some output displayed from the unix command below for
> example:
>
> echo "select name from sysdatabase"|dbaccess sysmaster|grep eagle
>
> Open database... <--------- would like to hide
>
> eagle
>
> 22 row(s) .... <--------- would like to hide
>
> Close database.. <--------- would like to hide
>
> I tried to redirect the output to /dev/null 2>&1 but not successful.
>
> Thank you in advance for any idea.
>
> H.V
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.