Changeset 30469 for trunk/pstamp/scripts
- Timestamp:
- Feb 2, 2011, 5:03:06 PM (15 years ago)
- Location:
- trunk/pstamp/scripts
- Files:
-
- 1 added
- 2 edited
- 1 moved
-
Makefile.am (modified) (1 diff)
-
psstatus (moved) (moved from trunk/tools/psstatus )
-
pstamp_save_server_status.pl (added)
-
pstamp_server_status (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/Makefile.am
r29330 r30469 17 17 pstamp_runcommand.sh \ 18 18 pstamp_server_status \ 19 pstamp_save_server_status.pl \ 19 20 pstamp_webrequest.pl \ 20 21 pstamp_get_image_job.pl \ 21 22 psmkreq \ 23 psstatus \ 22 24 pstampstopfaulted \ 23 25 pstamp_checkdependent.pl \ -
trunk/pstamp/scripts/pstamp_server_status
r30317 r30469 25 25 26 26 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 27 #pod2usage( -msg => "Required options: --first --stage",28 # -exitval => 3) unless29 # defined $first and30 # defined $stage;31 27 32 28 # Look for programs we need … … 39 35 } 40 36 37 # XXX: Note under pantasks this will be the curent directory, so this 38 # isn't necessary if the pstamp/web stuff is configured to point at the 39 # ipp build. But currently it's running out of Bill's build 41 40 my $ipphome = "/home/panstarrs/ipp"; 41 my $status_cmd = "psstatus"; 42 42 43 $rundir = "$ipphome/pstamp" if !$rundir; 43 44 … … 50 51 exit 0; 51 52 } 53 54 my $now = `date -u`; 55 56 print "<b>Status updated: </b> $now<br /><br />\n"; 52 57 53 58 my ($pts, $pantasks_script) = tempfile ('/tmp/pts.XXXX', UNLINK => !$save_temps); … … 138 143 print "Task pstamp.job.run not found.<br />\n"; 139 144 } 145 146 # now run the script psstatus to check the status of running requests and finished requests 140 147 print "<br /><b>Unfinished Requests</b><br />\n"; 141 148 print "<pre>\n"; 142 system " /home/panstarrs/bills/ipp/tools/psstatus -r";149 system "$status_cmd --running"; 143 150 print "</pre>\n"; 151 152 if (0) { 153 # these are included in running requests above 154 print "<br /><b>Requests building results fileset</b><br/>\n"; 155 print "<pre>\n"; 156 system "$status_cmd --finishing"; 157 print "</pre>\n"; 158 } 159 144 160 print "<br /><b>Requests completed in last 24 hours (most recently completed first)</b><br />\n"; 145 161 print "<pre>\n"; 146 # finished requests 147 system "/home/panstarrs/bills/ipp/tools/psstatus -f"; 162 system "$status_cmd --finished"; 148 163 print "</pre>\n"; 164 149 165 } else { 150 166 print "Task pstamp.request.run not found.\n"; … … 153 169 154 170 155 156 171 exit 0;
Note:
See TracChangeset
for help on using the changeset viewer.
