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

Colleen Shannon cshannon at caida.org
Tue Oct 3 20:27:50 PDT 2006


Hi Dan,

The person responsible for t2_report++ is out this week, but I'm sure he'll
get back to you next week.

Regards,
Colleen

-- 
Colleen Shannon
CAIDA/SDSC/UCSD - cshannon at caida.org

--On Tuesday, October 03, 2006 10:38:17 AM -0700 "Ballinger, Dan"
<dballinger at opentv.com> wrote:

> 
> 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 




More information about the Coral-dev mailing list