- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pstamp/scripts/pstamp_webrequest.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/pstamp/scripts/pstamp_webrequest.pl
r25370 r27838 20 20 use Getopt::Long qw( GetOptions ); 21 21 use Sys::Hostname; 22 use POSIX qw( strftime ); 22 23 23 24 my $host = hostname(); … … 82 83 my $cur_dir = getcwd(); 83 84 #print STDERR "cur_dir is $cur_dir\n"; 85 86 my $datestr = strftime "%Y%m%d", gmtime; 87 my $datedir = "$cur_dir/webreq/$datestr"; 88 if (! -e $datedir ) { 89 if (! mkdir $datedir ) { 90 print STDERR "failed to create working directory $datedir"; 91 exit $PS_EXIT_CONFIG_ERROR; 92 } 93 } 94 84 95 my $request_name = "web_" . get_webreq_num(); 85 my $request_file = "$ cur_dir/$request_name.fits";96 my $request_file = "$datedir/$request_name.fits"; 86 97 { 87 98 my $command = "$pstamprequest -req_name $request_name -project $project $request_file @ARGV"; … … 125 136 126 137 my $command = "$pstamptool -addreq -uri $request_file -ds_id 0"; 138 $command .= " -label WEB"; 127 139 $command .= " -dbname $dbname" if $dbname; 128 140 $command .= " -dbserver $dbserver" if $dbserver;
Note:
See TracChangeset
for help on using the changeset viewer.
