I have a Python script, EulerianCycle.py
, and an input file, euleriancycle.txt.
I am able to get the correct results by doing py EulerianCycle euleriancycle.txt > cat euleriancycleout.txt
into the current folder (py
is an alias for python3
).
However, I have another folder in this current one called outputs, to which I want all my output files be directed.
I've tried py EulerianCycle.py euleriancycle.txt | cd outputs/ | cat > euleriancycleout.txt
And py EulerianCycle.py euleriancycle.txt | cat >cd outputs/euleriancycleout.txt
which gives me the broken pipe error.