Shell Script Collection All scripts are created by Alan Cheung Hin Lun. This section is my *.sh collection. I collected them from web or my work place. Enjoy it! To run the script: chmod +x abc.sh getpw.sh To get all user's shadow password base on their /home directory is exist tapebackup.sh To run backup processing schedule by tape drive with cronjob (using 'mt' command) check_ps_top.sh It is the script to gather 'ps' and 'top' information and write to /var/log/ps-top/, you can place in server and set cronjob to run it server_check.sh Show basic server information, such as: ip,gateway,HDD,ram... whaismyip.sh Help to locate your pc/server real IP dict.sh Linuxª©¤¤¤åyahooºô¤W¦r¨å Web Dictionary for Chinese - English after installation, type "dict word" P.S.: It is invalid now!! cdict Linux cdict Web Dictionary for Chinese - English Put this file into /bin and "chmod +x cdict" , type "cdict word" natdhcp_routeadd_sample.sh The sample of route add script for DHCP NAT rsync_diff.sh Rsync script with differential per day switch.sh It is deal of switch (on/off) function to run the command It can be used in cron job for bi-weekly. du-sort.sh To count the files/folers size in sorting and show in KB,MB,GB.TB ssh_email_alert.sh Email Alert for SSH login. Installation go to : http://linux.alanstudio.hk/ssh_emailalert.htm burn-cd.sh Make the data to iso , then Burn to CD sed-replace-word.sh To replace the word in all files of specific destination directory. mrtg-fast-install-centos5.sh Fast installation script for mrtg Server is hosted by Alanstudio Linux Operating System Recommend screen resolution 1024 x 768 / IE / FireFox Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved. |