There is no such device or address: '/ dev / stdout'

I am executing a python script from node using execSync as follows:

execSync('python myScript.py -o "/dev/stdout"');

My script will send the result to the file specified -oin this case /dev/stdout.

I get the error message " There is no such device or address: '/ dev / stdout' ".

If I execute the command manually from the terminal, it works fine, but not when launched through node.

I am running Ubuntu 12.04.

+1
source share
1 answer

, /dev/stdout stdout. python execSync, stdout .

execsync, , 'stdout

+1

Source: https://habr.com/ru/post/1659167/


All Articles