Changeset 208

Show
Ignore:
Timestamp:
04/28/09 14:59:45 (7 months ago)
Author:
cholt
Message:

added usage to iprscan_batch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bin/iprscan_batch

    r196 r208  
    1111use Thread::Semaphore; 
    1212 
     13my $usage = " 
     14Usage: 
     15 
     16     iprscan_batch <file_name> <cpus> <log_file> 
     17 
     18     Runs iprscan on the given input file.  Output goes into a datastore. 
     19 
     20     The cpus option is optional for multi-threading. 
     21 
     22     The log file is optional.  The optional log file is not for creating that log 
     23     file but rather to parse an existing log file.  iprscan_batch will then only 
     24     re-run jubs that the log file says are not yet finished. 
     25 
     26 
     27"; 
     28 
    1329my $file = shift; 
    1430my $cpus = shift || 1; 
    1531my $log = shift; 
     32 
     33if(! $file){ 
     34    print $usage; 
     35    exit; 
     36} 
    1637 
    1738my @files :shared;