Re: [pve-devel] [RFC qemu-server] If a VM is offline, catch the netcat timeout with a user friendly message

2017-01-09 Thread Dietmar Maurer
nc6 simply suppress errors for some reason, test with: # nc6 -l -p 8000 -w 10 -e "asdasdfadf" Maybe it is better to use socat? socat TCP-listen:8000 exec:asdasdfadf,nofork where 'asdasdfadf' is a non existing command ... > On November 30, 2016 at 10:19 AM Emmanuel Kasper

[pve-devel] [RFC qemu-server] If a VM is offline, catch the netcat timeout with a user friendly message

2016-11-30 Thread Emmanuel Kasper
This error message replaces the error: TASK ERROR: command '/bin/nc6 -l -p 5900 -w 10 -e '/usr/bin/ssh -T -o BatchMode=yes 192.168.16.75 /usr/sbin/qm vncproxy 401 2>/dev/null'' failed: exit code 1 as seen in the task list. It is not currently possible to test if a VM is running or not for the