#!/bin/bash
#This is Mail sent a large number of intelligent bash script
#Write time 2013-8-4
#Author webjin
if [ `id -u` -ne 0 ]
then
echo "please use root running"
su -
fi
if [ `ulimit -n` -le 1024 ]
then
echo -e "speng soft nofile 10240\nspeng hard nofile 10240" >> /etc/security/limits.conf
else
break
exit 1
fi
adword()
{
read -p "please write words ad" title
echo "$title" >> title.txt
read -p "please write words ad" content
echo "$content" >> content.txt
}
if [ -f ~/title.txt -a -f ~/content.txt -a -f ~/id.txt ]
then
echo "the file true cun zai "
adword
else
#touch {title,content,id}.txt
adword
fi