Skip to content
Archive of entries posted on March 2010

Bash Sub Shells

Taken from here. #!/bin/bash server_cmd=server pid_file=$(basename $server_cmd .sh).pid log_file=$(basename $server_cmd .sh).log ( echo \”Starting server\” echo \”Doing some init work\” $server_cmd # server becomes a daemon while true do if [[ -f $pid_file ]]; then sleep 15 else break fi done mail -s \”Server exitted\” joe@blow.com <<<CRAP ) 2>&1 >> $log_file & echo \”Server started\” [...]

Happy holi to all.

A very happy Holi to all. Technorati Tags: fun, holi, wishes

Airtel does not need old customers

Couple of days back, I shifted my house. No big deal, right. Not for Airtel . I applied for a change in installation address and applied for the same. And promptly they told me that it will be done in 4 days time. I was a very happy person, but the happiness did not last [...]