Environmental Variables

Filed Under (Articles) by WebScHoLaR on 14-02-2008

Tagged Under :

Environmental variables are usually used to store the paths so that you don’t have to remember the complete path. Wouldn’t it be easy to just write %windir% in Run or command prompt to open the folder where Windows is installed? Yes, thats the use of environmental variables. Same applies to Linux platform too, just the difference is that in Linux you need to use $ sign before the variable name. Read the rest of this entry »

DiskUsage Report – diskusage.sh

Filed Under (Scripts) by WebScHoLaR on 14-02-2008

Tagged Under :

Here is a simple bash script that I wrote to get a notification email whenever any of the server partition grows over the defined size. The size can be defined for MAXSIZE variable. You can then setup a cron to run this script after every few hours. You will not be bombarded with the notification emails as this script will send the notification email only when a partition is over the MAXSIZE. Read the rest of this entry »

Proudly Hosted by eServicesProvider