Skip to content Skip to sidebar Skip to footer

No Such Device Or Address: '/dev/stdout'

I'm executing a python script from within node using execSync like this: execSync('python myScript.py -o '/dev/stdout''); My script will send the result to the file specified at -

Solution 1:

When you run the command in a terminal, /dev/stdout redirects to the terminal stdout. When you spawn the python process with execSync there's no place for stdout to be redirected to.

If you read a bit further down the execsync page, it describes how to use a child process' stdout


Post a Comment for "No Such Device Or Address: '/dev/stdout'"