3 my $action = uc($ARGV[0]) if(@ARGV);
4 if($action and $action =~ /^(?:DOWNLOAD|DUMP|ECHO)$/) {
6 exec('urlrule_task',$action,@ARGV);
10 my $TASK_DATABASE = "DATABASE.URL";
11 open FO
,">>","urlrule_database.log";
12 print FO
scalar(localtime),": urlrule_database ",(map "\"$_\" ",@ARGV),"\n";
15 if($action and $action =~ /^(?:ADD)$/) {
16 push @ARGV,'newly',unless ($ARGV[$#ARGV] eq 'newly' or $ARGV[$#ARGV] =~ m/^#/);
18 exec 'r-config','-f',$TASK_DATABASE,@ARGV;