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


root@proxmox2-4:~# pvesh get /version  > stdout
200 OK
root@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 | [email protected]



 Van:   Kevin Lemonnier <[email protected]> 
 Aan:   <[email protected]> 
 Verzonden:   2-12-2016 12:01 
 Onderwerp:   [PVE-User] Hide the 200 OK from pvesh 

Hi, 
 
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. 
 
Thanks 
--  
Kevin Lemonnier 
PGP Fingerprint : 89A5 2283 04A0 E6E9 0111 


_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
_______________________________________________
pve-user mailing list
[email protected]
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user

Reply via email to