- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
pstamp/scripts (modified) (1 prop)
-
pstamp/scripts/pstamp_parser_run.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/pstamp/scripts
- Property svn:mergeinfo set to
-
branches/meh_branches/ppstack_test/pstamp/scripts/pstamp_parser_run.pl
r30317 r33415 55 55 } 56 56 57 $need_magic = 0; 58 57 59 my $missing_tools; 58 60 … … 89 91 # outdir is where all of the files generated for this request are placed 90 92 # NOTE: this location needs to be kept in sync with the web interface ( request.php ) 91 my $datestr = strftime "%Y %m%d", gmtime;93 my $datestr = strftime "%Y/%m/%d", gmtime; 92 94 my $datedir = "$pstamp_workdir/$datestr"; 93 95 if (! -e $datedir ) { 94 mkdir $datedir or my_die( "failed to create working directory $datedir for request id $req_id", $req_id, 95 $PS_EXIT_CONFIG_ERROR); 96 my $rc = system "mkdir -p $datedir"; 97 if ($rc) { 98 my $status = $rc >> 8; 99 $status = $PS_EXIT_CONFIG_ERROR if !$status; 100 my_die( "failed to create working directory $datedir for request id $req_id", $req_id, 101 $status); 102 } 96 103 } 97 104 … … 287 294 carp($msg); 288 295 296 if (!$req_id) { 297 exit $PS_EXIT_CONFIG_ERROR; 298 } 299 289 300 my $command = "$pstamptool -updatereq -req_id $req_id -set_fault $fault"; 290 301 $command .= " -dbname $dbname" if $dbname;
Note:
See TracChangeset
for help on using the changeset viewer.
