Linux Login Logout Scripts To Send Email

This script / daemon that send email of every login / logout to server. This helps sysadmin aware of login and logout to the server for monitoring purpose. Each line have its comment to understand how it works. Shell Script #!/bin/bash subject="New login on $(hostname -f)" email="" while true; do LASTLOGIN=`last | head -1` if […]

March 3, 2013 | By
| Reply More

Shell Script : Check Ping To Remote Host And Port Opened

This shell script enables you to perform a ping to remote host and check whether the mentioned port is opened on that server. This helps system admin for ping test and also make sure if there any issues with specific ports. Shell Script #!/bin/bash if [ "$#" = "0" ]; then echo "Usage: $0 " […]

February 28, 2013 | By
| Reply More