IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16764 for trunk/pstamp/scripts


Ignore:
Timestamp:
Feb 29, 2008, 2:42:19 PM (18 years ago)
Author:
bills
Message:

various bug fixes

Location:
trunk/pstamp/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_dorequest.pl

    r16591 r16764  
    9898        die("Unable to perform $command: $error_code");
    9999    }
    100     ### print "@$stdout_buf\n";
     100    ### print @$stdout_buf;
    101101}
    102102
  • trunk/pstamp/scripts/pstamp_parser_run.pl

    r16675 r16764  
    4242#my $outputDataStoreRoot = "/var/www/html/ds/dsroot";
    4343
    44 my $outputDataStoreRoot = metadataLookupStr($ipprc->{_ipprc}, 'PSTAMP_DATA_STORE_ROOT');
     44my $outputDataStoreRoot = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_DATA_STORE_ROOT');
    4545exit ($PS_EXIT_CONFIG_ERROR) unless defined $outputDataStoreRoot;
    4646my $defaultOutputRoot = $outputDataStoreRoot;
     
    4949#my $inputWorkdir = "/export/data1/bills/pstamp/work/$request_id";
    5050
    51 my $inputWorkdir = metadataLookupStr($ipprc->{_ipprc}, 'PSTAMP_WORKDIR');
     51my $inputWorkdir = metadataLookupStr($ipprc->{_siteConfig}, 'PSTAMP_WORKDIR');
    5252exit ($PS_EXIT_CONFIG_ERROR) unless defined $inputWorkdir;
    5353$inputWorkdir .= "/$request_id";
  • trunk/pstamp/scripts/pstamp_runcommand.sh

    r16591 r16764  
    1717
    1818# These variables need to be customized for a particular installation
    19 # XXX: why not pass these on on the command line ?
     19# XXX: why not pass these on on the command line or in the environment?
    2020export PSCONFDIR=/export/data0/bills/psconfig
    2121
    2222WORK_DIR=/export/data1/bills/pstamp/work
    23 CMD_DIR=/export/data0/bills/src/ipp/pstamp/scripts
     23CMD_DIR=/export/data0/bills/src/ipp/pstamp/scripts:/export/data0/bills/src/ipp/DataStoreServer/web/cgi
    2424
    2525#### END LOCAL_CONFIGURATION
     
    5050###
    5151PATH=${CMD_DIR}:${PATH}
     52#echo path: $PATH >&2
     53#echo command: $* >&2
    5254
    5355## make sure we are able to run the desired command
  • trunk/pstamp/scripts/pstamp_webrequest.pl

    r16359 r16764  
    6969        run(command => $command, verbose => $verbosity);
    7070    unless ($success) {
    71         print STDERR "@$stderr_buf\n";
     71        print STDERR @$stderr_buf;
    7272        die("Unable to perform pstamprequest: $error_code");
    7373    }
     
    8787    }
    8888    ### print "Matching Images:\n";
    89     print "@$stdout_buf";
     89    print @$stdout_buf;
    9090    exit 0;
    9191}
     
    9999        run(command => $command, verbose => $verbosity);
    100100    unless ($success) {
    101         print STDERR "@$stderr_buf\n";
     101        print STDERR @$stderr_buf;
    102102        die("Unable to perform pstamptool -addreq: $error_code");
    103103    }
     
    111111        run(command => $command, verbose => $verbosity);
    112112    unless ($success) {
    113         print STDERR "@$stderr_buf\n";
     113        print STDERR @$stderr_buf;
    114114        die("Unable to perform pstamparser_run -addreq: $error_code");
    115115    }
Note: See TracChangeset for help on using the changeset viewer.