3 ms·
> There are situations where named pipes fail, where you actually do need a plain file In general: If the command you are passing the named pipe to expects a f
by emacdona 5y ago
> There are situations where named pipes fail, where you actually do need a plain file
In general: If the command you are passing the named pipe to expects a file which it can randomly access, a named pipe won’t work.
I ran into this today using a python tool, yamldiff. I was trying to diff a local yaml file with one from a cluster obtained via kubectl, eg:
yamldiff localManifest.yaml <(kubectl get … —output yaml)
and it failed with python telling me the file wasn’t seekable. Then I remembered this thread which I had initially read a few days ago and tried =() (since I use shell) — and it worked!