Read attributes from stdin on Windows workstation

Hi All

On unix/linux you can read json from stdin

echo ‘{“attr”:“value”}’ | chef-client -j /dev/stdin

Does anyone know of a way to achieve the same in Powershell?

Thanks
Mark

The relationship between streams and files is fundamentally diferent between linux and windows so there is not an equivilent “trick” in powershell.

1 Like