Openshift 特定时间的每日 cron
Daily cron at specific time on Openshift
我每天都在 08:28am 尝试 运行 这个脚本,但它没有 work.How 我可以在特定时间配置每日作业吗?
#!/bin/bash
time=$(date +%H%M)
if [ $time -eq "0825" ]; then
php /var/lib/openshift/55375281e0b8cdb702000011/app-root/runtime/repo/php/test.php
fi
把这个放在你的文件夹里
#!/bin/bash
if [ `date +%H:%M` == "08:25" ]
then
######## do stuff here
fi
我每天都在 08:28am 尝试 运行 这个脚本,但它没有 work.How 我可以在特定时间配置每日作业吗?
#!/bin/bash
time=$(date +%H%M)
if [ $time -eq "0825" ]; then
php /var/lib/openshift/55375281e0b8cdb702000011/app-root/runtime/repo/php/test.php
fi
把这个放在你的文件夹里
#!/bin/bash
if [ `date +%H:%M` == "08:25" ]
then
######## do stuff here
fi