Changeset 9493
- Timestamp:
- Oct 11, 2006, 3:15:34 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cache/ippScripts/scripts/phase0_imfile.pl
r9476 r9493 7 7 $VERSION = '0.01'; 8 8 9 use Cache::File; 10 use Storable qw(freeze thaw); 11 use File::Basename qw( basename); 9 12 use IPC::Cmd qw( can_run run ); 10 13 use PS::IPP::Metadata::Config; 11 14 use PS::IPP::Metadata::Stats; 12 use Data::Dumper;13 use Cache::File;14 15 15 16 use PS::IPP::Config; … … 79 80 80 81 my $c = Cache::File->new( 81 cache_root => File::Spec->catdir($ENV{'HOME'}, '. pxcache'),82 cache_root => File::Spec->catdir($ENV{'HOME'}, '.', basename($0)), 82 83 default_expires => '7200 sec', 83 84 ); … … 96 97 if (defined $cmd_output) { 97 98 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) 98 = @{ $cmd_output};99 = @{thaw $cmd_output}; 99 100 } else { 100 101 my @output = run(command => $command, verbose => 1); 101 $c->set($command, \@output) if $cache;102 $c->set($command, freeze \@output) if $cache; 102 103 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) 103 104 = @output;
Note:
See TracChangeset
for help on using the changeset viewer.
