[libvirt] virsh ttyconsole [node] has rc of 1?

Darryl L. Pierce dpierce at redhat.com
Wed Apr 15 16:18:55 UTC 2009

I have a script that's breaking when trying to get the ttyconsole for a
node. The script gets the console by invoking:

virsh ttyconsole [nodename]

The script also has trap on error enabled, and the above command has a
return code of 1. This is causing the script to exit at that point.

Is this a bug? Or is there a reason that return code is 1 and not 0?
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Virtual Machine Management - http://www.ovirt.org/
Is fearr Gaeilge bhriste ná Béarla cliste.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090415/e12e6a24/attachment-0001.sig>

More information about the libvir-list mailing list