IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 16, 2009, 5:54:55 PM (17 years ago)
Author:
Paul Price
Message:

Distribution client workflow is now working!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/receive_fileset.pl

    r23888 r23894  
    5555my @files = ();                 # Files to add
    5656{
    57     my $uri = "$source/product/$fileset"; # URI for datastore fileset
     57    my $uri = "$source/$product/$fileset"; # URI for datastore fileset
    5858    $uri .= "/index.txt" unless $uri =~ m|/index.txt$|;
    5959    my $command = "dsfilesetls --uri $uri"; # Command to execute
     
    6464
    6565    # Get files
    66     foreach my $line (@$stdout_buf) {
     66    my @lines = split(/\n/, join "", @$stdout_buf); # Lines from output
     67    foreach my $line ( @lines ) {
    6768        $line =~ s/\#.*$//;
    6869        next unless $line =~ /\S+/;
     
    7778    my $command = "receivetool -addfile"; # Command to execute
    7879    $command .= " -fileset_id $fileset_id";
    79     $command .= " -file" . join(' -file', @files);
     80    $command .= " -file " . join(' -file ', @files);
    8081    $command .= " -dbname $dbname" if defined $dbname;
    8182
Note: See TracChangeset for help on using the changeset viewer.