
Linux
LisenW
这个作者很懒,什么都没留下…
展开
-
【Shell 基础】shell 条件判断
基本语法 [ condition ] 注意condition前后要有空格。非空返回0,0为 true,否则为false 。 代码列子: num1=1; num2=3; if [ ${num1}>${num2} ] then echo "${num1}>${num2}" elif [ ${num1}<${$num2} ] then echo "${num1}<${$num2}" elif [ ${num1}==${num2} ] then echo "$原创 2020-10-10 19:15:49 · 137 阅读 · 0 评论 -
Linux 创建php定时任务
crontab 命令介绍 通过crontab 命令,我们可以在固定的间隔时间执行指定的系统指令或 shell script脚本。时间间隔的单位可以是分钟、小时、日、月、周及以上的任意组合。 命令格式: crontab [-u user] file crontab [-u user] [ -e | -l | -r ] 参数介绍: -u user:用来设定某个用户的crontab服务; file:file是命令文件的名字,表示将file做为crontab的任务列表文件并载入crontab。如果在命令原创 2020-10-09 20:43:48 · 379 阅读 · 1 评论