aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xminimun4
1 files changed, 2 insertions, 2 deletions
diff --git a/minimun b/minimun
index ac369cb..f376d9a 100755
--- a/minimun
+++ b/minimun
@@ -5,13 +5,13 @@ use warnings;
use IPC::Run qw(run);
use Time::HiRes qw( time );
-my $in;
+my ($in, $out);
$in .= "\\award\n";
$in .= "\\bye\n";
my $timestamp = time;
-run ['/usr/bin/pdftex', '-jobname', "$timestamp", 'format.tex'], '<', \$in;
+run ['/usr/bin/pdftex', '-jobname', "$timestamp", 'format.tex'], '<', \$in, '>', \$out;
print "Content-type: application/pdf\n\n";
open(DOC, '<', "$timestamp.pdf");
while (<DOC>){