I assume that the csvcut Python script works the rest, but causes an error when trying to close the files and exit.
If, as you say, the script otherwise works and assumes that the "csvcut" error returns outputs in stderr, then redirecting it to / dev / null will be a temporary fix.
cat <<EOF >$OUTPUTFILE 2>/dev/null
Naturally, any other error messages in your heredoc will also be redirected there.
Zengyro
source share