Changeset 37


Ignore:
Timestamp:
11/18/05 19:29:09 (19 years ago)
Author:
thauvin
Message:
  • add postrun function
Location:
trunk/soft/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/scripts/transfert

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r36 r37  
    202202    if ($?) { 
    203203        loging(4, "rsync exit with non 0 status: %d", $? >> 8); 
     204    } else { 
     205        # No error running action: 
     206        if (my $postrun = $config->val($entry, 'postrun')) { 
     207            loging(0, "found postrun: %s for %s", $postrun || '(unset)', $entry); 
     208            foreach my $f (@files) { 
     209                my $filename = "/$f->{file}"; 
     210                my $fpostrun = sprintf($postrun, $filename); 
     211                loging(0, "Running `%s'", $fpostrun); 
     212                my $postrunres = system($fpostrun); 
     213                 
     214            } 
     215        } 
    204216    } 
    205217    my $totalsize = 0; 
     
    242254 
    243255    $Log$ 
     256    Revision 1.4  2005/11/18 18:29:08  thauvin 
     257    - add postrun function 
     258 
    244259    Revision 1.3  2005/11/08 18:40:43  thauvin 
    245260    - add documentation 
  • trunk/soft/scripts/transfert-config

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r35 r37  
    55 
    66[test] 
    7 source=/.automount/virgo/root/home/users/olivier/lidarcvs/soft/scripts/* 
     7source=/home/users/olivier/lidarcvs/soft/scripts/* 
    88dest=/net/tmp/s/ 
    99mailto=thauvin@aerov.jussieu.fr, olivier.thauvin@aero.jussieu.fr 
     10postrun= cp %s /tmp 
Note: See TracChangeset for help on using the changeset viewer.