perl <<'EOF'
use Sys::Hostname;
my $hostname = hostname();
system("tail -n 1000 /var/lib/mysql/${hostname}.err");
print "[*] Showing last 1000 lines in the SQL error log on $hostname\n";
EOF
