#!/usr/bin/perl use strict; use warnings; open(STDOUT, '>', 'htmllog'); my $cmd = 'pdftohtml -noframes -c /path/to/.pdf'; system($cmd); exit;