≡ Menu

shell script

Howto: Call Shell Script function In echo statement

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?
[click to continue…]

How do I read a list of ip address (subnets) using a text file and block all of them using Linux iptables command?
[click to continue…]

UNIX / Linux: Shell Scripting With mail Command

How do I send e-mails from a shell script including file attachments?
[click to continue…]

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?
[click to continue…]

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?
[click to continue…]

Bash Shell Generate Random Numbers

How do I create or generate random numbers (sequence of numbers that lack any pattern), under Bash shell?
[click to continue…]

Iptables Limits Connections Per IP

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