Featured »

April 16, 2013 – 12:39 pm |

Imagine you have an HPC cluster with a hundred compute nodes named node001-node100. The two commands below will help you generate a list of node names – either all name on one line or one name per …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Tags

Articles tagged with: korn shell

Shell Scripting for HPC Clusters, Part 2

October 23, 2009 – 12:30 pm |
Shell Scripting for HPC Clusters, Part 2

This is the second installment of a multipart guide for beginner Unix sysadmins supporting HPC clusters. You can view the first part of the guide here.
Searching, Replacing, Comparing
Try to work with a large cluster and …

Use Perl inside Shell scripts

May 1, 2008 – 11:44 am | 2 Comments
Use Perl inside Shell scripts

Perl is a far more powerful programming tool than any shell script. Sometimes you want to borrow some of that power without having to rewrite your entire shell script. There is an easy way to integrate Perl snippets inside your shell script.

Generating complex SQL queries with shell scripts

February 21, 2006 – 9:08 am | 4 Comments
Generating complex SQL queries with shell scripts

It is sometimes necessary to use complex select and insert queries with dozens of variables. Writing such queries by hand is a tedious process and the chance of making a mistake is high. A few …

Handling errors and trapping system calls

December 2, 2005 – 11:20 am | 5 Comments
Handling errors and trapping system calls

In the course of writing a shell script it is important to consider possible error and unexpected interrupts. Let’s say you wrote an interactive script that allows users to archive old files to free up …

Wget examples and scripts

November 27, 2005 – 3:19 pm | 27 Comments
Wget examples and scripts

Wget is a command-line Web browser for Unix and Windows. Wget can download Web pages and files; it can submit form data and follow links; it can mirror entire Web sites and make local copies. …

Using GNUPlot to chart MySQL data

November 20, 2005 – 12:17 pm | 8 Comments
Using GNUPlot to chart MySQL data

The following Korn shell function connects to a MySQL database and extracts specified data, which is then plotted as a function of time using GNUPlot.  Using correct syntax is critical. Note the use of single- …

Database operations with SQL and Korn shell

November 20, 2005 – 11:46 am | 3 Comments
Database operations with SQL and Korn shell

The following Korn shell function will read the a directory containing CSV data files named server_sysstat.20051119.csv with format:

Find largest files

November 19, 2005 – 11:17 pm | 3 Comments
Find largest files

How to find the largest files in the directory tree on Solaris.