Changeset 18247 for trunk/pstamp/scripts
- Timestamp:
- Jun 20, 2008, 3:08:02 PM (18 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 3 edited
-
pstamp_listjobs.pl (modified) (4 diffs)
-
pstamp_queue_requests.pl (modified) (1 diff)
-
pstamp_webrequest.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_listjobs.pl
r18236 r18247 8 8 use warnings; 9 9 use strict; 10 use Getopt::Long qw( GetOptions ); 11 12 my $verbose; 13 my $dbname; 14 15 GetOptions( 16 'verbose' => \$verbose, 17 'dbname=s' => \$dbname, 18 ); 10 19 11 20 if (@ARGV != 1) { … … 15 24 my $request_id = $ARGV[0]; 16 25 17 my $verbosity = 0;18 26 19 27 use Sys::Hostname; … … 21 29 22 30 ## This isn't a script to be launched by pantasks we probably want go get rid of this 23 if ($verbos ity) {31 if ($verbose) { 24 32 print STDERR "\n\n"; 25 33 print STDERR "Starting script $0 on $host\n\n"; … … 59 67 { 60 68 my $command = "$pstamptool -listjob -req_id $request_id"; 69 $command .= " -dbname $dbname" if $dbname; 61 70 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 62 run(command => $command, verbose => $verbos ity);71 run(command => $command, verbose => $verbose); 63 72 unless ($success) { 64 73 die("Unable to perform pstamptool -pendingreq: $error_code"); -
trunk/pstamp/scripts/pstamp_queue_requests.pl
r18234 r18247 17 17 my $verbose; 18 18 my $dbname; 19 my $limit; 19 20 20 21 GetOptions( 21 22 'verbose' => \$verbose, 22 23 'dbname=s' => \$dbname, 24 'limit=s' => \$limit, 23 25 ); 24 26 -
trunk/pstamp/scripts/pstamp_webrequest.pl
r18233 r18247 68 68 # if -list is used, it must be the first argument 69 69 my $listMode; 70 if ($ARGV[0] eq "-list " ) {70 if ($ARGV[0] eq "-list_uri" ) { 71 71 $listMode=1; 72 72 } else { … … 92 92 ### In list mode just parse the file print the output and we're done 93 93 ### 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"; 95 96 $command .= " -dbname $dbname" if $dbname; 96 97 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
