English 中文(简体)
Daily cron at specific time
原标题:
  • 时间:2012-05-04 12:34:22
  •  标签:
  • openshift

I would like to run a daily job at the OpenShift Express PaaS. I know how to activate the cron cartridge on my app and how to add scripts into the correct cron folder.

But I have a special need to specify, at which time of the day the job will be executed. E.g. "Every day at 10:30pm"

Is this possible with the OpenShift cron cartridge? How do I configure a daily job with a specific time?

Regards, Lars

最佳回答

You can use the "minutely" cron job and only run your script if the current time is 10:30pm.

Like this :

#!/bin/bash

if [ `date +%H:%M` == "22:30" ]
then
    bash scriptToRunAt10h30pm.sh
fi
问题回答

暂无回答




相关问题
具有相同形象的集装箱,但具有不同的组合

Is there a way to have an application with 2 containers with the same image version but with different name and resources on OpenShift? For example: In the same namespace, given a micro service with ...

使用带 Jboss 和 Openshift 的罐子图书馆

我试图使用Jboss 和 Eclipse 来在 Openfight 上安装一个简单的 REST Web Service。 我有一个 Jar 库, 里面藏着一些课程, 我把它放在路径上: src/main/webapp/WEB-INF/lib/ of the...

Daily cron at specific time

I would like to run a daily job at the OpenShift Express PaaS. I know how to activate the cron cartridge on my app and how to add scripts into the correct cron folder. But I have a special need to ...

指挥线上的超重弹(Openshitft)

第一夫人 我对Ruby不了解很多情况,但开放式袭击指挥线利用警钟管理我对云的 app。 尼斯!

Spring doesn t get env variable from Openshift

I have Spring Boot Application that is automatically deployed to Openshift when I commit some change to Git. I need to externalize the datasource config. I m trying to use envonriment variables as ...

热门标签