IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18247 for trunk/pstamp/scripts


Ignore:
Timestamp:
Jun 20, 2008, 3:08:02 PM (18 years ago)
Author:
bills
Message:

more tweaks.

Location:
trunk/pstamp/scripts
Files:
3 edited

Legend:

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

    r18236 r18247  
    88use warnings;
    99use strict;
     10use Getopt::Long qw( GetOptions );
     11
     12my $verbose;
     13my $dbname;
     14
     15GetOptions(
     16    'verbose'   =>  \$verbose,
     17    'dbname=s'  =>  \$dbname,
     18);
    1019
    1120if (@ARGV != 1) {
     
    1524my $request_id = $ARGV[0];
    1625
    17 my $verbosity = 0;
    1826
    1927use Sys::Hostname;
     
    2129
    2230## This isn't a script to be launched by pantasks we probably want go get rid of this
    23 if ($verbosity) {
     31if ($verbose) {
    2432    print STDERR "\n\n";
    2533    print STDERR "Starting script $0 on $host\n\n";
     
    5967{
    6068    my $command = "$pstamptool -listjob -req_id $request_id";
     69    $command .= " -dbname $dbname" if $dbname;
    6170    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    62         run(command => $command, verbose => $verbosity);
     71        run(command => $command, verbose => $verbose);
    6372    unless ($success) {
    6473        die("Unable to perform pstamptool -pendingreq: $error_code");
  • trunk/pstamp/scripts/pstamp_queue_requests.pl

    r18234 r18247  
    1717my $verbose;
    1818my $dbname;
     19my $limit;
    1920
    2021GetOptions(
    2122    'verbose'       =>  \$verbose,
    2223    'dbname=s'      =>  \$dbname,
     24    'limit=s'       =>  \$limit,
    2325);
    2426
  • trunk/pstamp/scripts/pstamp_webrequest.pl

    r18233 r18247  
    6868# if -list is used, it must be the first argument
    6969my $listMode;
    70 if ($ARGV[0] eq "-list" ) {
     70if ($ARGV[0] eq "-list_uri" ) {
    7171    $listMode=1;
    7272} else  {
     
    9292    ### In list mode just parse the file print the output and we're done
    9393    ###
    94     my $command = "$pstampparse $request_file";
     94    ### XXX TODO: I shouldn't need this -mode list_uri since it's in the request file
     95    my $command = "$pstampparse -mode list_uri $request_file";
    9596    $command .= " -dbname $dbname" if $dbname;
    9697    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.