Qixiang Wan
2010-Mar-31 06:53 UTC
[Libguestfs] How can I change exit on error behaviour in remote control mode ?
Hi, all: In remote control mode of guestfish, the server will normally exit if there is an error in a command. guestfish man page said if we prefix a command with a - character, then that command will not cause guestfish to exit, but this doesn't work in remote control mode, seems the prefixal '-' in sub-command won't be handled by guestfish. -------------- $ eval `guestfish --listen` $ guestfish --remote version major: 1 minor: 0 release: 85 extra: $ guestfish --remote -- -lvs -lvs: unknown command $ guestfish --remote version guestfish: remote: looks like the server is not running -------------- any idea for this?
Richard W.M. Jones
2010-Mar-31 07:51 UTC
[Libguestfs] How can I change exit on error behaviour in remote control mode ?
On Wed, Mar 31, 2010 at 02:53:44AM -0400, Qixiang Wan wrote:> Hi, all: > In remote control mode of guestfish, the server will normally exit if there is an error in a command. > guestfish man page said if we prefix a command with a - character, then that command will not cause guestfish to exit, > but this doesn't work in remote control mode, seems the prefixal '-' in sub-command won't be handled by guestfish. > > -------------- > $ eval `guestfish --listen` > $ guestfish --remote version > major: 1 > minor: 0 > release: 85 > extra: > $ guestfish --remote -- -lvs > -lvs: unknown command > $ guestfish --remote version > guestfish: remote: looks like the server is not running > -------------- > > any idea for this?I think it's a bug. Please file a BZ about it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/