Tags » Shell Script

Linux Matrix Effects Shell Script

Sometimes to have a funky time on the BASH shell you can run the below shell script

#!/bin/bash
clear
virtcent=$((`tput lines`/2))
horcent=$((`tput cols`/2-10))
tput setf 6
tput cup $virtcent $horcent && echo "entering the matrix"
sleep 1
tput cup $virtcent $horcent && echo " "
sleep 1
tput cup $virtcent $horcent && echo "entering the matrix"
sleep 1
tput cup $virtcent $horcent && echo " "
sleep 1
tput cup $virtcent $horcent && echo "connecting. 252 more words

Getting result from database in shell script

In shell script, there is no standard way of connecting and retrieving result from database. But, for Oracle we can use SQLPlus to connect and run operations on database. 1,268 more words

Oracle

Shell Script to Continuously Monitor CPU Usage and Memory Usage of a Process and write output to CSV file

Hi all, recently I had to do some performance tests at work at AdroitLogic and I wanted to monitor CPU usage and memory usage of a process continuously and get that output to a file so that I can use them to analyze more later with graphs and stuff. 357 more words

Cpu

Hiring a Sr. QA Tester (Contract) in Toronto, ON!

Hiring a Sr. QA Tester (Contract) in Toronto, ON! Join a global client that is making wide-scale impact, offering generous compensation and frequent team-building events. Apply now: http://bit.ly/1Uul76f

Toronto

Unix is a pretty awesome thing if handled carefully. Compared to Windows, it is far more robust and secure. But lack of GUI is the only challenge for several Unix/Linux OS flavors (except Linux Mint of-course). 1,539 more words

Various Scripting Tutorials

Shell script to automate the backup of PostgreSQL database

chmod 777 -R /opt/backup/
su postgres <<-EOSU
	psql
	DROP DATABASE IF EXISTS "BACKUP";
	CREATE DATABASE "BACKUP";
EOSU
su postgres <<-EOSU
	psql -vFc BACKUP < /opt/backup.sql
EOSU
PostgreSQL