Changeset 9747 in ntrip


Ignore:
Timestamp:
Jun 1, 2022, 11:45:39 AM (2 months ago)
Author:
wiese
Message:

ADD: minor in helper scripts

Location:
trunk/BNC/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/scripts/Common.pm

    r9627 r9747  
    4646    my $stderr = getContent($tmpfile);
    4747    return ( $exit_code, $stdout, $stderr );
     48}
     49
     50sub mkDir {
     51    my $dir = shift;
     52    return 1 if ( -d $dir );
     53
     54    eval { mkpath($dir) };
     55    if ($@) {
     56        warn("Could not create path [$dir]: $@");
     57        return 0;
     58    }
     59    return 1;
    4860}
    4961
  • trunk/BNC/scripts/sot.pl

    r9679 r9747  
    123123
    124124EXAMPLES:
    125    $prog -n euref-ip.net /home/user/log/bnc*.log
     125   $prog -n euref-ip.net /home/user/log/bnc.log*
    126126
    127127EOI_HILFE
Note: See TracChangeset for help on using the changeset viewer.