chintan491
02-23-2006, 05:36 AM
i am trying to monitor the file system .. i had written the following code ..
#!/usr/bin/perl
use strict;
use SGI::FAM;
my $conn = new SGI::FAM;
$conn->monitor( "/var/log/messages" );
while (1) {
my $event = $conn->next_event;
print $event->filename, " ", $event->type, "\n";
}
this is working perfectly for local machine but how do i get it working for remote machine ..???
#!/usr/bin/perl
use strict;
use SGI::FAM;
my $conn = new SGI::FAM;
$conn->monitor( "/var/log/messages" );
while (1) {
my $event = $conn->next_event;
print $event->filename, " ", $event->type, "\n";
}
this is working perfectly for local machine but how do i get it working for remote machine ..???