I have a file called pids.txt that contains lines, such as the following:
123
456
789
Then, I wrote a Python script that does something with each line. The Python script gets run like:
my_script.py 123 456 789 -a "something here" -b "something else"
I am stuck at the part where I want to run a Unix command, piping the outputs of pids.txt to my_script.py. I think you have to do something with cat?
(This doesn't work)
cat pids.txt | ./myscript.py -a "something here" -b "something else"
Any idea?