码迷,mamicode.com
首页 > 系统相关 > 详细

shell脚本学习

时间:2017-06-28 20:19:54      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:style   config   span   nbsp   task   net   shel   shell脚本学习   www   

#!/bin/sh
ip=`ifconfig eth0 | grep ‘inet‘ | awk ‘{print $2}‘`
ip1=‘x.x.x.x‘

if [ "$ip" == "$ip1" ]; then
dir=‘/home/wwwroot/default/guoyi/Pay/‘
else
dir=‘/home/web/guoyi/Pay/‘
fi

php ${dir}‘index.php‘ order_task

 

shell脚本学习

标签:style   config   span   nbsp   task   net   shel   shell脚本学习   www   

原文地址:http://www.cnblogs.com/loveyouyou616/p/7091275.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!