scripts

Korn shell scripting is something all UNIX users should learn how to use. This article will teach you to write your own Korn shells scripts.

{ 0 comments }

Razvan talk about hooking Amarok to MySQL database server and create an MP3 file server. I this is an excellent hack: When it comes to playing music in Linux, Amarok is one of the best audio players out there. It offers almost everything you need, from a clean, intuitive interface to a range of useful […]

{ 0 comments }

This article examined a simple, but powerful, method to run commands on a remote machine using combination of ssh and a shell script: Use Secure Shell (SSH) to run commands on remote UNIX systems and, with some simple scripts, put together a system that enables you to manage many systems simultaneously from one machine without […]

{ 7 comments }

When invoked without arguments, the date command displays the current date and time. Depending on the options specified, date will set the date and time or print it in a user defined way. I’ve seen many sysadmin writing perl scripts for calculating relative date such as yesterdays or tomorrows day. You can use GNU date command, which is designed to handle relative date calculation such as:

  • 1 Year
  • 2 Days
  • 2 Days ago
  • 5 Years

{ 66 comments }

You may have noticed that most shell and perl script starts with the following line: #!/bin/bash OR #!/usr/bin/perl It is called a shebang. It consists of a number sign and an exclamation point character (#!), followed by the full path to the interpreter such as /bin/bash. All scripts under UNIX and Linux execute using the […]

{ 18 comments }