'vhclient -t LIST' exits 255 on success

5 posts / 0 new
Last post
roman.saveljev
'vhclient -t LIST' exits 255 on success

Hello,

docker@boot2docker:~$ vhclient -t LIST
VirtualHere IPC, below are the available devices:
(Number in brackets = address, * = Auto-Use)

B17 (remotehub:7575)
*--> TTL232R-3V3 (4294967410) (In-use by you)
*--> Olimex OpenOCD JTAG ARM-USB-OCD-H (4294967408) (In-use by you)

Auto-Find currently off
Auto-Use All currently on
Reverse Lookup currently off
VirtualHere is running as a service
docker@boot2docker:~$ echo $?
255
docker@boot2docker:~$

Why does it do it? Should it exit 0 instead?

Regards,
Roman

Michael
Yes it always returns -1 (255

Yes it always returns -1 (255 unsigned) when the client is called with the -t command.
I see that is an issue with the set -e in a bash script, i will try to fix now and let you know when a new build is ready...

Michael
This is now fixed in 3.0.1 of

This is now fixed in 3.0.1 of the client. it will always return 0 to the shell and hence set -e will work

If you want to know if an IPC command actually failed you need to parse the stdout pipe

roman.saveljev
Thanks,

Thanks,

This should help at least to some extent.. Are there any plans to support more machine-friendly output formats? JSON? XML?

Regards,
Roman

Michael
I suppose xml output could be

I suppose xml output could be doable, ill add it to the todo list...

Log in or register to post comments