Percentuale di memoria usata per un processo

Esempio per l’httpd: TOTAL_RAM=`free | head -n 2 | tail -n 1 | awk '{ print $2 }'`; PROC_RSS=`ps axo rss,comm | grep [h]ttpd | awk '{ TOTAL += $1 } END { print TOTAL }'`; PROC_PCT=`echo "scale=4; ( $PROC_RSS/$TOTAL_RAM ) * 100" | bc`; echo "RAM Used by HTTP:... [Read More]
Tags: memoria, memory, percentage, percentuale, process, used

Campi del crontab

.—————- [m]inute: minuto (0 – 59) | .————- [h]our: ora (0 – 23) | | .———- [d]ay [o]f [m]onth: giorno del mese (1 – 31) | | | .——- [mon]th: mese (1 – 12) OPPURE jan,feb,mar,apr… | | | | .—- [d]ay [o]f [w]eek: giorno della settimana (0 – 6)... [Read More]
Tags: cron, crontab