shell scripts

How do I invert a protocol or ip address test while writing iptables based shell scripts?

{ 3 comments }

How To Use awk In Bash Scripting

by Vivek Gite on August 15, 2009 · 22 comments

How do I use awk pattern scanning and processing language under bash scripts? Can you provide a few examples?

{ 22 comments }

Applescript: Run or Call a Shell Script

by Vivek Gite on January 26, 2009 · 3 comments

How do run a a shell script with an AppleScript? How do I integrate shell scripts into AppleScript? How do I call a shell script called /path/to/chkhost.sh using an applescript?

{ 3 comments }

Q. How do I login over ssh without using password less RSA / DSA public keys? How do I use ssh in a shell script? How do I login non-interactivly performing password authentication with SSH and shell scripts?

{ 19 comments }

Understanding Linux / UNIX tr command

by Vivek Gite on December 23, 2007 · 18 comments

Q. Can you explain the tr command and how to use it under Linux / UNIX like oses? A. The tr utility copies the given input to produced the output with substitution or deletion of selected characters. tr abbreviated as translate or transliterate. It takes as parameters two sets of characters, and replaces occurrences of [...]

{ 18 comments }

Q. How do I backup files and database for the Red Hat Enterprise Linux / CentOS Linux? Currently I’ve MySQL server running on CentOS 5 and Web server and file server using RHEL 5. How do I backup all these servers? A. Regular backup is an essential for Linux system. You can take backup on [...]

{ 1 comment }

Q. Hey quick question – How do I mail files from AIX / HP-UX UNIX as attachments from my shell scripts or command line? A. If you have mutt mail client installed, use the mutt as described here. If you don’t have mutt installed use the following command to email files as attachment from UNIX [...]

{ 20 comments }