On Windows, CTRL-Z is the end-of-file character for text files.
A friend of mine had the following problem with my tools:
The “Broken pipe” error occurs because 1) zipdump.py -D is dumping the content of all files as binary data and 2) re-search.py is reading this binary data as a text file. Whenever zipdump.py outputs a CTRL-Z character, re-search.py interprets this as end-of-file, terminates, therefor the pipe is closed, and zipdump is left with a broken pipe.
To prevent this, use option -f to make re-search read its input as a binary file:
Leave a Reply (comments are moderated)