While True

March 21, 2013
bash unix solaris

On Solaris servers I’ve missed the ‘watch’ command. Mostly when you have filesystems filling up fast. The ‘watch’ command nowadays comes bundled with most distros but not on those proprietary systems. I had to find a way of getting it done on Solaris, AIX or any other *nix family. Here’s what I came up with :

while true;do df -h;sleep 5;tput clear;done

It runs the ‘df’, sleeps 5 seconds, clears the screen and keeps running. Wasn’t that hard to catch.

MySQL/MariaDB database daily backup

October 24, 2013
bash database mariadb

Bash – for loop

May 12, 2013
linux bash programming

Bash script for remote command execution

March 21, 2013
bash programming