command1 | your_script.pl >> output.txt