Hi
I've tried to get one word out off a file. I used the following script:
!/usr/bin/perl
print "Content-type: text/html\n\n";
use strict;
chomp(my $file=</home/drivestatus>);
open(FH, "< $file" or die "Blabla $file open\n";
undef $/;
my $search = <FH>;
if($search =~ m/drivestatus/) {
print "drivestatus" }
The problem I have is that the name *drivestatus can change any time and I dont know the new name .
Any Idea?
Thanks in advance
Daniel
daniel_giger@hotmail.com
I've tried to get one word out off a file. I used the following script:
!/usr/bin/perl
print "Content-type: text/html\n\n";
use strict;
chomp(my $file=</home/drivestatus>);
open(FH, "< $file" or die "Blabla $file open\n";
undef $/;
my $search = <FH>;
if($search =~ m/drivestatus/) {
print "drivestatus" }
The problem I have is that the name *drivestatus can change any time and I dont know the new name .
Any Idea?
Thanks in advance
Daniel
daniel_giger@hotmail.com