qemu/{vmid}/agent/exec example

Hyien

Member
Jun 18, 2021
95
2
13
34
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?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!