The HTTP response test get a false http status (401).ちょっと調べるとサイトにBASIC認証がかかっていると発生してしまうらしい。
認証解除すればOK、とのことだけど、認証する必要があるから認証かけてるわけで。
もうちょっと調べてみると、SettingsのNetworkにユーザIDとパスワード入れればいいらしい。
ちゃんと動いた!やったね!
The HTTP response test get a false http status (401).ちょっと調べるとサイトにBASIC認証がかかっていると発生してしまうらしい。
use File::Tail;
$file = File::Tail->new(name => "test.txt");
while( defined($line = $file->read)) {
print "$line";
}
ちょっと調べてみると、マニュアルにmaxintervalなるものがある。
maxinterval The maximum number of seconds (real number) that will be spent sleeping. Default is 60, meaning File::Tailwill never spend more than sixty seconds without checking the file.
$file->tail(-1);すれば出来ますよ、みたいなのを見つけてやってみたけど、動かない。
use File::Tail;
$file = File::Tail->new(name => "test.txt", maxinterval => 1, tail => -1) or die("cannot tail test.txt");
while( defined($line = $file->read)) {
print "$line";
}
ちゃんと動くようになった。