≡ Menu

wrapper script

Shell Script Wrapper Examples: Enhance the Ping and Host Commands

Shell script wrappers can make the *nix command more transparent to the user. The most common shell scripts are simple wrappers around third party or system binaries. A wrapper is nothing but a shell script that includes a system command or utility.

Linux and Unix like operating system can run both 32bit and 64bit specific versions of applications. You can write a wrapper script that can select and execute correct version on a 32bit or 64bit hardware platform. In cluster environment and High-Performance computing environment you may find 100s of wrapper scripts written in Perl, Shell, and Python to get cluster usage, setting up shared storage, submitting and managing jobs, backups, troubleshooting, invokes commands with specified arguments, sending stdout to stdout and stderr to stderr and much more.

In this post, I will explains how to create a shell wrapper to enhance the basic troubleshooting tool such as ping and host.
[click to continue…]

Linux success story – Using Linux at Work

Yet another Linux success story, from the article:

I am by no stretch of the imagination a Linux expert, but my overall experience has been excellent and I shall continue to use Fedora for my day to day work. My productivity has not been affected at all, and anyone who wants to try something different, or take a cheaper OS route, should consider a look at Linux - it's really not that scary.

I've been programming since a young age, and Linux has always seemed like a natural progression, especially as my development environment is PHP/MySQL/Apache. A while ago, this was all done on a Red Hat installed system, using the "Plesk" web interface. Although I spent quite a few hours at the console sorting out problems, Plesk hid the real nitty gritty from me and I was often just following "How Tos" in order to get things fixed. In saying that, I did manage to write a wrapper script that fixed a compatibility between MailMan and Plesk, so I wasn't doing too badly. However, I would hardly say I felt confident in Linux, and using it for my day to day work seemed strangely frightening.

Read more, Using Linux at Work...