您可以根据需要将父级的stdio传递给子进程:
require('child_process').execSync( 'rsync -avAXz --info=progress2 "/src" "/dest"', {stdio: 'inherit'});
您可以根据需要将父级的stdio传递给子进程:
require('child_process').execSync( 'rsync -avAXz --info=progress2 "/src" "/dest"', {stdio: 'inherit'});