I know that $0 will print the command that runs a perl script. Is there a way to capture the commands before the perl script that are piping their results into the perl script?
My goal is to write a bunch of simple programs that love to use pipes, and connect them together. The last program is a perl program, and it would be great if it could record what exactly was done. Here's and example:
> constant_linear_motion 100 2 5 6 3 0 0 0 0 > q1.data; cat q1.data | q_conj >> q1.data; cat q1.data |q_sort |q_graph
If I could get the perl program q_graph to record all the preceding parts starting from "constant_linear_motion", that documentation would be great.
Thanks,
doug
In reply to Collecting a piped command line by sweetser
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |