Changeset 27355 for trunk/pstamp/scripts
- Timestamp:
- Mar 19, 2010, 8:32:52 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_webrequest.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_webrequest.pl
r27172 r27355 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";
Note:
See TracChangeset
for help on using the changeset viewer.
