shell定时任务
2015-12-18 15:04
471 查看
(1)crontab -e
55 14 * * * cd /crontab/ios_push;/bin/sh /crontab/ios_push/ios_push_redis.sh >a.out
(2) /os_push_redis.sh脚本内容
#!/bin/bash
while true
do
a=`/usr/bin/php ios_push_redis.php`
if [ "$a" = "runend" ]
then
echo $a;
break;
fi
echo $a
sleep 1
done
55 14 * * * cd /crontab/ios_push;/bin/sh /crontab/ios_push/ios_push_redis.sh >a.out
(2) /os_push_redis.sh脚本内容
#!/bin/bash
while true
do
a=`/usr/bin/php ios_push_redis.php`
if [ "$a" = "runend" ]
then
echo $a;
break;
fi
echo $a
sleep 1
done
相关文章推荐
- Azure PowerShell 1.0.0以上版本在中国Azure使用的注意事项
- Azure PowerShell 1.0.0以上版本在中国Azure使用的注意事项
- Azure PowerShell 1.0.0以上版本在中国Azure使用的注意事项
- Azure PowerShell 1.0.0以上版本在中国Azure使用的注意事项
- crontab shell调用spark-sql,实现周期性动态SQL批量自动执行
- linux shell 字符串操作(长度,查找,替换)详解
- profile与bashrc
- 用shell打印出乘法口诀
- shell练习1
- shell检测输入的IP是否合法
- linux Shell编程入门
- linux shell用法(5)-- awk命令
- 我目前认识的beanshell
- shell编程入门之parameter
- SSH Secure Shell Client中文乱码的解决办法
- shell练习1
- 用shell打印出乘法口诀
- 【191】◀▶ Powershell 命令集 Cmdlets
- 使用PowerShell配置Hyper-v Server重复数据删除
- 使用PowerShell配置Hyper-v Server重复数据删除