文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>脚本收藏

脚本收藏

时间:2006-05-31  来源:ghbspecial

启动服务   cat service.sh
#!bin/sh
/etc/..../apachectl start
su - wdxc /site/jboss/bin/run.sh &&
su - oracle /usr/local/syscmf/oracle.sh &&
    cat /usr/local/mf/oracle.sh
lsnrctl start
expect /usr/local/mf/oracle.exp
    cat oracle.exp #!/usr/local/bin/expect

#oracle run scripts
set timeout 60
spawn sqlplus \/nolog
set timeout 60
expect "SQL\>"
set timeout 60
send "conn \/ as sysdba\r"
set timeout 360
expect "SQL\>"
send "startup\r"
set timeout 60
expect "SQL\>"
send "exit\r"

exit
      mail send     cat mailsend.sh #! /bin/bash READPATH="./mail"
for FILE in $READPATH/*
do
    if [ -f "$FILE" ];then
        if [ -r "$FILE" ];then
            if [ -s "$FILE" ];then
                LINECOUNT=0
                CONTENT=""
                read EMAILS SUBJECT < $FILE
                while read LINE;do
                    if [ $LINECOUNT -eq 0 ];then
                        let LINECOUNT=$LINECOUNT+1
                        continue
                    fi
                    echo $LINE >> ./content.txt
                done < $FILE
                echo $EMAILS | awk -F"," '{ for(i=0;i<NF;i++){
                        system("mail "$i" -s '"$SUBJECT"'  < ./content.txt")
                }}'
           fi
        fi
    fi
done

相关阅读 更多 +
排行榜 更多 +
骑战烈火之剑作弊菜单版

骑战烈火之剑作弊菜单版

角色扮演 下载
越狱模拟器无限金币版

越狱模拟器无限金币版

角色扮演 下载
破烂水手手机版

破烂水手手机版

冒险解谜 下载