| 1 |  | 
|---|
| 2 |  | 
|---|
| 3 |  | 
|---|
| 4 |  | 
|---|
| 5 |  | 
|---|
| 6 |  | 
|---|
| 7 |  | 
|---|
| 8 |  | 
|---|
| 9 |  | 
|---|
| 10 |  | 
|---|
| 11 |  | 
|---|
| 12 |  | 
|---|
| 13 |  | 
|---|
| 14 |  | 
|---|
| 15 |  | 
|---|
| 16 |  | 
|---|
| 17 | use DBI; | 
|---|
| 18 | use DBD::Pg; | 
|---|
| 19 | use Schedule::At; | 
|---|
| 20 | use Time::Local; | 
|---|
| 21 |  | 
|---|
| 22 |  | 
|---|
| 23 | $path = $0; | 
|---|
| 24 | $path =~ s/folprep.pl$//i; | 
|---|
| 25 | if ($pwd  ne "./"){ | 
|---|
| 26 | push( @INC, "$path"); | 
|---|
| 27 | } | 
|---|
| 28 |  | 
|---|
| 29 | require "foltialib.pl"; | 
|---|
| 30 |  | 
|---|
| 31 |  | 
|---|
| 32 | system("$toolpath/perl/getxml2db.pl"); | 
|---|
| 33 |  | 
|---|
| 34 |  | 
|---|
| 35 | $pid = $ARGV[0] ; | 
|---|
| 36 | if ($pid eq "" ){ | 
|---|
| 37 |  | 
|---|
| 38 | print "usage;folprep.pl <PID>\n"; | 
|---|
| 39 | exit; | 
|---|
| 40 | } | 
|---|
| 41 |  | 
|---|
| 42 |  | 
|---|
| 43 | $pid = $ARGV[0]; | 
|---|
| 44 |  | 
|---|
| 45 |  | 
|---|
| 46 | &writelog("folprep  $toolpath/perl/addpidatq.pl $pid"); | 
|---|
| 47 | system("$toolpath/perl/addpidatq.pl $pid"); | 
|---|
| 48 |  | 
|---|