Changeset 9166 for trunk/ippScripts/scripts/phase0_imfile.pl
- Timestamp:
- Oct 3, 2006, 3:44:37 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/phase0_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/phase0_imfile.pl
r9098 r9166 11 11 use PS::IPP::Metadata::Stats; 12 12 use Data::Dumper; 13 14 use PS::IPP::Config; 15 my $ipprc = PS::IPP::Config->new(); # IPP configuration 16 use File::Spec; 13 17 14 18 use Getopt::Long qw( GetOptions :config auto_help auto_version gnu_getopt ); … … 31 35 and defined $class_id 32 36 and defined $uri; 33 34 # XXX the uri should be processed either here or by ppImage35 my $file = $uri;36 37 37 38 use constant RECIPE => "PPSTATS_PHASE0"; # Recipe to use for ppStats … … 72 73 die "Can't find required tools.\n" if $missing_tools; 73 74 75 # Resolve the input URI 76 $uri = File::Spec->rel2abs( $uri, $ipprc->workdir() ); 77 74 78 # Run ppStats on the input file 75 79 my $stats; 76 80 { 77 my $command = "$ppStats $ file-recipe PPSTATS " . RECIPE; # Command to run ppStats81 my $command = "$ppStats $uri -recipe PPSTATS " . RECIPE; # Command to run ppStats 78 82 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 79 83 run(command => $command, verbose => 1);
Note:
See TracChangeset
for help on using the changeset viewer.
