Home grown mail scheduler with bash script and cron

2013-10-04 2 min read bash Linux
If you are using Linux (Fedora/Ubuntu or anything else) then you do get a lot of tools and one of them is cron. Very very useful. Just write some script that can do the task for you, put it in cron and forget it. So, here is a home grown way to schedule mails. First, copy this script below: #!/bin/bash - #=============================================================================== # # FILE: sched_mail.sh # # USAGE: ./sched_mail.sh # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), # REVISION: --- #=============================================================================== mailfile=" Continue reading

Introducing /run – what is this directory doing in my root directory?

2011-04-13 1 min read Linux
Image via Wikipedia http://lwn.net/Articles/436012/ There is a suggestion to add /run directory that will be mounted as tmpfs. This directory will be mounted early in the boot process and can be used in various scenario’s. I hope this will improve few things in the linux world. Related articles How to find the number of files inside the directory in linux (manivasagan.wordpress.com) How do you reset your Ubuntu password (wiki.answers.com) Finding Files using – locate – on Linux (galigio. Continue reading