Thanks!
I commented "if ($pve2->constructor_success())..." if statement to get it work.
This is the useful part:
fwrite($fh,"[virt-viewer]\r\n");
foreach ($result as $key => $data) {
fwrite($fh, $key."=".$data."\r\n");
I was trying to do with sed in my bash script.
Luigi
Hi all,
I'm trying to implement a spice vdi thin client starting from your hints and scripts. I'm stuck at the very end of my script calling remote-viewer.
remote-viewer accept a ini-formatted config file while pve api returns a json formatted file.
I tried to edit json file with some sed before...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.