小编tes*_*ter的帖子

在 IST 时间设置 cronjob

我正在尝试设置在不同时区运行的 cronjob。我用谷歌搜索了很多,发现编辑/etc/default/cron是要走的路。但是这个文件已被弃用,我看到以下消息,所以我TZ=IST在文件中添加了/etc/init/cron.conf. 我不确定这会奏效,请问有什么关于如何前进的提示吗?

# This file has been deprecated. Please add custom options for cron to
# /etc/init/cron.conf and/or /etc/init/cron.override directly. See
# the init(5) man page for more information
Run Code Online (Sandbox Code Playgroud)

我在 Ubuntu Linux 上使用 cron 3.0pl1-120ubuntu4。

cron ubuntu timezone

8
推荐指数
1
解决办法
6454
查看次数

标签 统计

cron ×1

timezone ×1

ubuntu ×1