| Line 18... | Line 18... | 
          
            | 18 | my $CRON= ! is_interactive(); # determine if we are in interactive shell
 | 18 | my $CRON= ! is_interactive(); # determine if we are in interactive shell
 | 
          
            | 19 |  
 | 19 |  
 | 
          
            | 20 | # control the flow of the program. $CHECKMAIL is pretty clear.
 | 20 | # control the flow of the program. $CHECKMAIL is pretty clear.
 | 
          
            | 21 | # if $PROCESS is false and $MOVEFILES is true, the files will be moved
 | 21 | # if $PROCESS is false and $MOVEFILES is true, the files will be moved
 | 
          
            | 22 | # but not processed (ie, they were processed some other way)
 | 22 | # but not processed (ie, they were processed some other way)
 | 
          
            | 23 | my $CHECKMAIL=0; #controls whether we will check the mail or not
 | 23 | my $CHECKMAIL=1; #controls whether we will check the mail or not
 | 
          
            | 24 | my $PROCESS=1; # controls whether we will process the files
 | 24 | my $PROCESS=1; # controls whether we will process the files
 | 
          
            | 25 | my $MOVEFILES=1; # controls whether we will move the files successfully processed
 | 25 | my $MOVEFILES=1; # controls whether we will move the files successfully processed
 | 
          
            | 26 |  
 | 26 |  
 | 
          
            | 27 | my $DATADIR; # will hold the reports directory
 | 27 | my $DATADIR; # will hold the reports directory
 | 
          
            | 28 | my $UNPROCESSED; # will hold the location for unprocessed reports
 | 28 | my $UNPROCESSED; # will hold the location for unprocessed reports
 |