How to use inotify-tools to trigger scripts on filesystem events

In my last example of Bash if statements we created a backup script which would run "rsync" as per the time set in a cron.

Read More

How to display a changing output like top



In my earlier post on linux memory management, I showed you how you can get the exact memory usage of your script by using py_mem.py.
watch command examples
This script, without any options will run once and give you the current memory usage of the system.
But what if you wanted real time memory usage?, In other words, if a program which was using up memory did not run when you ran the script py_mem.py, you would not know about it right?

Read More

Advance text processing examples in awk



Last week I was reading up on awk and was fascinated by its text processing capabilities despite been written more than 3 decades ago.

Read More

Bash If statements, Exit Status and Comparison Operators, A beginners guide to bash scripting part 2



In my previous post we looked at a simple bash backup script example, which would sync data between servers using "rsync" and then send us an email.

Read More

A simple way to install and configure puppet on CentOS 6



Puppet is an automation tool which allows you to automate the configuration of software like apache and nginx across multiple servers.

Read More

Subscribe

Search

Creative Commons License
All Techarena51.com posts Content by Leonard Gonsalves is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at http://techarena51.com.
Permissions beyond the scope of this license may be available at http://techarena51.com.