bash

Like most sys admin, I’m lazy. I try to automate almost all things in order to save time. Inexperienced sys admin and help desk staff working under me finds all these tools useful. It saves their time and avoids security issues. Automation allows help desk staff to do things that they don’t have enough direct system knowledge to do themselves. However, selecting correct tool and applying correct methodology is very important.

Note: There is a poll embedded within this post, please visit the site to participate in this post’s poll.

{ 36 comments }

Why should shell languages be the only ones left out of the ${YOUR_LANGUAGE_HERE} Server Pages fad? This document chronicles foray into the not-so-fascinating world of ${YOUR_LANGUAGE_HERE} Server Pages technology. All of the code developed is available for free download, so you can use Bourne Shell Server Pages to build your very own killer Web application. […]

{ 0 comments }

While writing a shell script you may want to find out the length of a string. While reading GNU expr command man page I found an interesting option:

{ 21 comments }

This is a classic problem. One of our FAQ is about cron job. I received lots of email with a question: How do I run my script on 3rd Monday or 4th Friday only? Cron does not offer this kind of facility i.e. you cannot run a script on the Nth weekday of the month. […]

{ 15 comments }

Asked by Chetan Joshi Q. What is the best way to find out what shell I’m using. echo $SHELL is not so reliable. Please let me know any tiny command or trick. A. Chetan, echo $SHELL should work. But here is old good UNIX trick. Use the command ps with -p {pid} option, which selects […]

{ 28 comments }

Working at the shell prompt is an essential task for any Linux system administration. However many newcomers find it difficult to work at the bash prompt. Here are some tricks to speed up your work.

{ 2 comments }