shell script

I need to call the function called foo() using echo command in the same statement. How do I all or invoke the function using the echo statement?

{ 1 comment }

How do I read a list of ip address (subnets) using a text file and block all of them using Linux iptables command?

{ 2 comments }

How do I send e-mails from a shell script including file attachments?

{ 3 comments }

What is the use of UNIX source command under bash or any other shell? How do I use source command under UNIX / OS X / Linux operating systems?

{ 3 comments }

I‘m using a Cisco Linksys WAG320N Router to connect my OS X UNIX and Linux systems to the Web. How do I reboot my Linksys WAG series router / gateway (modem) from UNIX / Linux / OS X bash command prompt or using a shell script?

{ 5 comments }

Bash Shell Generate Random Numbers

by Vivek Gite on April 27, 2010 · 7 comments

How do I create or generate random numbers (sequence of numbers that lack any pattern), under Bash shell?

{ 7 comments }

Iptables Limits Connections Per IP

by Vivek Gite on February 7, 2010 · 20 comments

How do I restrict the number of connections used by a single IP address to my server for port 80 and 25 using iptables?

{ 20 comments }