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
RCS
Check out the latest version:co full_path_nameCheck out the special versionco -f1.11 full_path_name[@more@]As title.
检查Solaris版本信息
查看/etc/release可以看到操作系统版本信息;运行uname -a 可以看到版本信息;运行showrev可以看到版本信心;[@more@]在Solaris中查看版本信息,有几种不同方式:1、直接查看/etc/release信息 # cat /etc/release Solaris 8 2/04 s28s_hw4wos_05a SPARC Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. Assembled 08 January 2004 2、uname # uname -aSunOS tys11app1 5.8 Generic_117350-43 sun4u sparc SUNW,Sun-Fire-V4403、showrev # showrevHostname