Send out email in shell script in Linux
Some times we need to send out email in shell script. The email can arrive the destination mail box if the mail server is in the same subnet. If we need to send email to any mailbox, we have to logon the SMTP server to relay the email.We can use mutt as the mail client to send out attachment and use nbsmtp as SMTP client to relay the email to the SMTP server.For RedHat Linux, you need to download nbsmtp from http://download.chinaunix.net/download.php?id=14627&ResourceID=7230. After make, you
Useful Port List for Linux
When we start a new service, we need to modify iptables to enable the port used by the service.I listed the port for some useful services here.[@more@]Samba: Sometimes we want to share files with Windows machine. So we enable Samba.Samba TCP 445
Change the iptables Setup for Oracle in Linux
After the installation of Linux, the firewall is enabled by default. After we install the database, we need to enable the port.[@more@]To enable the port in iptables, there are two ways to do that.1. We can enable it at run time.After run the command, the rule will take effect immediately. But if we do not write it into the configuration file, then the rule disappear after we restart the service.iptables -I INPUT -p tcp --dport 1521 -j ACCEPT2. We can change the configuration file and restart th