[Coral-dev] No such file or directory - t2_report++

Ballinger, Dan dballinger at opentv.com
Tue Oct 3 10:38:17 PDT 2006


Hello,

I am having trouble with t2_reporting++ and the html_dir.  I try to run
t2_report++ as seen below but I'm unable to get it to see or create the
www directory.  This started after I made the recommended changes to
Traffic_plot.pm.

sfo-radius01-test# /usr/local/Coral/bin/spoolcat
'/usr/local/Coral/data/*.t2' | /usr/local/Coral/bin/t2_report++ -f
/usr/local/Coral/etc/t2_report.conf
Unable to create destination directory
No such file or directory at /usr/local/Coral/bin/t2_report++ line 2141.

sfo-radius01-test# /usr/local/Coral/bin/spoolcat
'/usr/local/Coral/data/*.t2' | /usr/local/Coral/bin/t2_report++
Unable to create destination directory
No such file or directory at /usr/local/Coral/bin/t2_report++ line 2141.

sfo-radius01-test# /usr/local/Coral/bin/spoolcat
'/usr/local/Coral/data/*.t2' | /usr/local/Coral/bin/t2_report++ -c
"html_dir='/usr/local/Coral/www'"
Unable to create destination directory '/usr/local/Coral/www'
No such file or directory at /usr/local/Coral/bin/t2_report++ line 2141.

I set up some test programs to confirm that perl is working correctly
and it creates or sees the directory as expected.  

#! /usr/bin/perl5
##
##
  my $html_dir = "/usr/local/Coral/www";
    # Unless directory exists we better make it.
    unless ((-w $html_dir) and (-d $html_dir)) {
        unless ($html_dir and mkdir("$html_dir", 0755)) {
            die  "Unable to create destination directory $html_dir\n$!";
        }
    }

And (run like "ptest /home/danb/www")
#! /usr/bin/perl5
##
##
  my $html_dir = shift;
    # Unless directory exists we better make it.
    unless ((-w $html_dir) and (-d $html_dir)) {
        unless ($html_dir and mkdir("$html_dir", 0755)) {
            die  "Unable to create destination directory $html_dir\n$!";
        }
    }

Any help would be appreciated.

Thanks.

Dan Ballinger
Sr Network Engineer
275 Sacramento St.
San Francisco, CA 94111
(415) 962-5120

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rommie.caida.org/pipermail/coral-dev/attachments/20061003/ea484e3f/attachment.htm


More information about the Coral-dev mailing list