qemu/{vmid}/agent/exec example

Hyien

Member
Jun 18, 2021
95
3
13
36
Can someone provide as example for qemu/{vmid}/agent/exec for Proxmox 7 that calls a program with arguments and also uses input-data?
Thanks.
 
Hi,

The example of command with its argument is as the following:

Code:
pvesh create /nodes/pve/qemu/100/agent/exec --command 'ls' --command '-la' --command '/etc/hosts'

Do I understand correctly, that the script/program waits for input? or what are you mean exactly?