[pve-devel] Suggest hostnames in bash completion
tobia.conforto at gruppo4.eu
Mon Jul 18 19:37:42 CEST 2016
> For unix sockets, you can query the unix user of the connecting peer - so this is not really a problem. Also, you can connect to pvedaemon (not pveproxy), so connections are simple http (unencrypted). But you still have the overhead of spawning curl...
Is this something that's already available? My pvedaemon is not listening to any unix sockets.
Otherwise, we might as well have it listen on a specific socket, say /var/run/.pve_completion, with a simple protocol such as the example I made before. Then the various bash processes could communicate with it using a lightweight client such as 'nc' which would still be better than calling curl and parsing JSON.
> I wonder why bash does not support unix sockets....
I wonder too, especially since it supports /dev/tcp/xxx/yyy. Maybe it's there somewhere and I didn't look hard enough...
More information about the pve-devel