Read attributes from stdin on Windows workstation


#1

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


#2

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