Suppose I want the output from rsgen.py to be used as the references argument of my simulate.py script. How can I do it?
In simulate.py
parser.add_argument("references", metavar="RS", type=int, nargs="+", help="Reference string to use")
I tried
# ./simulate.py references < rs.txt
usage: simulate.py [-h] [--numFrames F] [--numPages P] RS [RS ...]
simulate.py: error: argument RS: invalid int value: 'references'
# ./simulate.py < rs.txt
usage: simulate.py [-h] [--numFrames F] [--numPages P] RS [RS ...]
simulate.py: error: too few arguments
I believe my piping syntax is wrong, how can I fix it?
Idealy, I want to directly pipe the output from rsgen.py into the references argument of simulate.py