Use readlink to tail the real file so it won't complains on EL6 about inotify
This commit is contained in:
parent
6f4bb7a885
commit
7be7fa71f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue