[PVE-User] Hide the 200 OK from pvesh

Mark Schouten mark at tuxis.nl
Fri Dec 2 12:07:25 CET 2016

As far as I can see, pvesh outputs that to STDERR:

root at proxmox2-4:~# pvesh get /version  > stdout
200 OK
root at proxmox2-4:~# cat stdout 
   "keyboard" : "en-us",
   "release" : "12",
   "repoid" : "6894c9d9",
   "version" : "4.3"

Met vriendelijke groeten,

Kerio Operator in de Cloud? https://www.kerioindecloud.nl/
Mark Schouten  | Tuxis Internet Engineering
KvK: 61527076 | http://www.tuxis.nl/
T: 0318 200208 | info at tuxis.nl

 Van:   Kevin Lemonnier <lemonnierk at ulrar.net> 
 Aan:   <pve-user at pve.proxmox.com> 
 Verzonden:   2-12-2016 12:01 
 Onderwerp:   [PVE-User] Hide the 200 OK from pvesh 

That's also on the forum, if I get an answer here I'll update there. 
Is there a simple way to prevent pvesh from outputting 200 OK to the tty ? 
Redirecting 1 and 2 doesn't seem to do anything so I assume it writes directly to the tty, which is very annoying in a script. 
Currently the script just shows a bunch of 200 OK in between my actual output lines, it's very ugly. 
Kevin Lemonnier 
PGP Fingerprint : 89A5 2283 04A0 E6E9 0111 

pve-user mailing list
pve-user at pve.proxmox.com

More information about the pve-user mailing list