i think you need to try : cat input.txt | /usr/bin/python test.py >output.txt > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/tutor/attachments/20080414/e06c756c/attachment.htm