in reply to creating a perl script
Should beif ( $_ == "has gone down" ) { run start server command }
You'll have to extract the timestamp from the matching line and save that to a file somewhere for comparison when you next run.if ( $_ eq "has gone down" ) { run start server command } as it's a string comparison, but actually should be if ( /has gone down/ ) { run start server command } as it's a match you're looking for.
|
|---|