FAQ tagged as:

shell scripts

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

{ 3 comments }

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

{ 13 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?

{ 0 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?

{ 10 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 the [...]

{ 12 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
=> Tape
=> [...]

{ 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 command [...]

{ 13 comments }

nixCraft FAQ PDF Collection Now Available To All