Pacific-Design.com

    
Home Index

1. Bash

2. System

+ Runtime

Bash / System /

System info send by email

01 * * * * sql/reports/myinfo.sh  | mail -s "UPT=$(date +\%F_\%H:\%M)" somebody@gmail.com
21 * * * * ps aux | sort -nr -k 3 | head -10 | mail -s "CPU=$(date +\%F_\%H:\%M)"  somebody@gmail.com
41 * * * * ps aux | sort -nr -k 4 | head -10 | mail -s "MEM=$(date +\%F_\%H:\%M)"  somebody@gmail.com