Use readlink to tail the real file so it won't complains on EL6 about inotify

This commit is contained in:
Daniel Berteaud 2014-06-25 13:31:21 +02:00
parent 6f4bb7a885
commit 7be7fa71f3
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ $mail->subject("[STATUS] $host.$domain");
my $body = $mail->open;
print $body localtime(time)."\n",
"\n#>tail /var/log/messages :\n",
`/usr/bin/tail /var/log/messages`,
`/usr/bin/tail \$(readlink /var/log/messages)`,
"\n#>netstat --numeric-hosts -tpu :\n",
`/bin/netstat --numeric-hosts -tpu`;
$body->close;