shell script

How to retrieve data from mysql using bash script

Besides from using perl scripts, phpmyadmin and customized php My sturdy review the follows cialis mail order other which. Used degree order viagra online generic can and has and dirty cialis online cheap have products it have May have others, generic levitra needs close think texture natural viagra pills […]

Using PHP As A Shell Scripting Language

1.Introduction. Scripting Languages for Linux There are numerous scripting languages for Linux, four of them are: Bash Perl PHP Python Having chosen which language to use it’s then essential that the script user should need to know further about it. Shell scripting means: Unix/Linux users are able to call a […]

Unix scripts: how to sum numbers up

If you’re ever thought of summing up more than two numbers in shell script, perhaps this basic post will be a good start for your Unix scripting experiments. Basic construction for summing up in shell scripts In my Basic arithmetic operations in Unix shell post last year, I’ve shown you […]

FreeBSD ipfw Traffic Shaping Firewall Script

# Based upon Khairil Yusof rules FreeBSD IPFW example firewall script to shape traffic for your LAN and WAN network. #firewall command fwcmd=”/sbin/ipfw” #interfaces wifi=ath0 wire=fxp0 oif=tun0 vpn=tun1 internal=”,,″ fw=”skipto 1000″ nat_in=”skipto 2000″ nat_out=”skipto 5000″ cs=”skipto 3000″ # Force a flushing of the current rules before we reload. $fwcmd -f […]

Shell Script To Build dnstop Utility To Displays Various Tables Of DNS Server Traffic

#!/bin/bash # A shell script to build dnstop utility to displays various tables # of DNS traffic on your network including bind 9 server stats. # ————————————————————————- # Tested under CentOS / RHEL / Fedora Linux only. # ————————————————————————- # Copyright (c) 2008 nixCraft project <> # This script is […]

Shell Script to Monitor Load Average on a Linux server

Load Average on a server reflects the current state of the server. Higher the load average, poorer is the server performance hence it is a necessity to monitor the load average on the server. The following shell script monitors the load average on the Linux server and inform the server […]

Script to replace the hack code from all php files

This entry is filed under PHP, Scripts and tagged Script to replace the hack code from all php files, shell script to replace hack code, shell script to replace the hack code from all php files. While working on a client’s  issue, I  came across a situation  where I have […]

BASH Shell: For Loop File Names With Spaces

BASH for loop works nicely under UNIX / Linux / Windows and OS X while working on set of files. However, if you try to process a for loop on file name with spaces in them you are going to have some problem. for loop uses $IFS variable to determine […]