Here is a list of custom commands I usually create on linux based systems.
htr is a custom command that will restart apache
echo "service httpd restart" > /usr/bin/htr ; chmod 700 /usr/bin/htr
awstats is a custom command that will update ALL STATS for all sites that have a config file
echo "/usr/local/awstats/tools/awstats_updateall.pl now" > /usr/bin/awstats ; chmod 700 /usr/bin/awstats
mail-ps is a custom command to mail the current process list to statusupdate@xxxxxxx.net
echo "ps auxw | mail -s \"Server: Current Processes\" statusupdate@xxxxxxx.net" > /usr/bin/mail-ps ; chmod 700 /usr/bin/mail-ps
mail-netstat is a custom command to mail the current open port list to statusupdate@xxxxxxx.net
echo "netstat -nape | mail -s \"Server: Current Active Internet Connections\" statusupdate@xxxxxxx.net" > /usr/bin/mail-netstat ; chmod 700 /usr/bin/mail-netstat
Tuesday, April 20, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment