[Opendnssec-user] supress output

Sebastian Castro sebastian at nzrs.net.nz
Mon Nov 14 22:32:08 UTC 2011


On 15/11/11 11:06, Bas van den Dikkenberg wrote:
> Hello,
> 
>  
> 
>  
> 
> When i run ods-ksmutil database backup >/dev/null  I get this output:
> 
> SQLite database set to: /var/lib/opendnssec/db/kasp.db
> 
>  
> 
> is there a way suppress this output ?

Shell redirection.

That message is printed to the standard error, you are capturing the
standard output.

If you run

ods-ksmutil database backup 2>&1 /dev/null

you'll be redirecting both standard output and standard error to /dev/null

I hope it helps,

> 
>  
> 
> 
> 
> _______________________________________________
> Opendnssec-user mailing list
> Opendnssec-user at lists.opendnssec.org
> https://lists.opendnssec.org/mailman/listinfo/opendnssec-user


-- 
Sebastian Castro
DNS Specialist
.nz Registry Services (New Zealand Domain Name Registry Limited)
desk: +64 4 495 2337
mobile: +64 21 400535



More information about the Opendnssec-user mailing list