Friday, 04 April 2008 05:33
Monitor cpu abusers with this simple script
In preparation from a few upcoming articles I created a script called monitorCpuUsage.sh. It is meant to be called from crontab and to inform you of processes or users who maybe using excessive amounts of cpu.
Read more...
Thursday, 27 December 2007 10:23
Writing and debugging scripts
After going through this chapter, you will be able to:
♦ Write a simple script
♦ Define the shell type that should execute the script
♦ Put comments in a script
♦ Change permissions on a script
♦ Execute and debug a script
Read more...
Thursday, 27 December 2007 10:08
Bash and Bash scripts
In this introduction module we
♦ Describe some common shells
♦ Point out GNU Bash advantages and features
♦ Describe the shell's building blocks
♦ Discuss Bash initialization files
♦ See how the shell executes commands
♦ Look into some simple script examples
Read more...
Friday, 19 October 2007 10:13
What Is a Shell?
A shell is a program that takes commands typed by the user and calls the operating system to run those commands. The shell interprets your commands. For example, you may use the shell to enter a command to list the files in a directory, such as ls, or a command to copy a file, such as cp. There are a number of different shells, which are introduced later in this chapter.
Read more...
Friday, 19 October 2007 10:06
What Are Shell Scripts?
A shell script is a text file that contains one or more commands. This seems pretty simple after all this buildup, but that’s all a script really is. The power of shell scripts, however, lies not in the simplicity of the concept, but in what you can do with these files.
Read more...