[Pdns-users] Return code of pdns_control
Erik.Ljungstrom at dedipower.org
Mon Jun 21 16:31:23 UTC 2010
I've noticed that the pdns_control command returns 0 regardless of the outcome of the operation. It would be great if the return code would indicate that there was a problem.
$ pdns_control retrieve thisdoesntexist.com ; echo $?
Domain 'thisdoesntexist.com' unknown
$ pdns_control retrieve syntax error ; echo $?
syntax: retrieve domain
>From a scripting point of view, it would be mighty useful if the return code would be != 0 if there was a problem of some sort.
We're running pdns-2.9.22. Before I start digging through the source, is there any chance this will be changed in a future release?
This message is intended solely for the use of the individual or organisation to whom it is addressed. It may contain privileged or confidential information. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you should not use, copy, alter, or disclose the contents of this message. All information or opinions expressed in this message and/or any attachments are those of the author and are not necessarily those of DediPower Managed Hosting Ltd or its affiliates.
DediPower Managed Hosting Ltd is registered in England and Wales No. 3625971 Registered Office: Cadogan House, Rose Kiln Lane, Reading, Berkshire, RG2 0HP
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdns-users