| 1 |
% $Id: write18-quote.tex 16695 2010-01-13 01:18:02Z karl $ |
| 2 |
% Public domain. Originally written by Karl Berry, |
| 3 |
% with ideas from Alexander Cherepanov. |
| 4 |
|
| 5 |
\catcode`\# = 12 |
| 6 |
\def\cmd{" 2>&1 | echo badnews >pwned.txt #.gz"} |
| 7 |
|
| 8 |
% create this weirdly-named file. |
| 9 |
\catcode0 = 12 |
| 10 |
\immediate\openout1 \cmd^^@ |
| 11 |
\immediate\closeout1 |
| 12 |
|
| 13 |
% write out a special referring to it. |
| 14 |
% if it exists when dvips is run, it will be executed with popen. |
| 15 |
\special{psfile=\cmd} |
| 16 |
\nopagenumbers |
| 17 |
\end |