创建更多永久的crontab文件 [英] Creating more permanent crontab files

查看:157
本文介绍了创建更多永久的crontab文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近才提出这个问题:执行bash程序每天同时

I just recently asked this question: Running a bash program every day at the same time

使用crontab -e创建作业的解决方案非常好,我的脚本工作正常。
然而,我发现一旦我退出终端,那个工作就被删除了。如何创建一个由cron介导的工作,无论我退出终端还是关闭我的计算机(假设我的计算机在计划执行cron作业时被回拨),它将每天工作。

The solution of using crontab -e to create a job worked very well and my script worked fine. However, I found that once I exited the terminal, that job was deleted. How can I create a job mediated by cron that will work every day at the same regardless of if I exit the terminal or even turn off my computer (assuming my computer is turned back when the cron job is scheduled to execute)

推荐答案

所以在连接问题中给出的接受答案将在每天上午7点运行脚本。如果您已登录,则无关。

cron is permanent. So the accepted answer given in the linked question would run the script at 7 AM everyday. It has nothing to do with if you are logged in or not.

这篇关于创建更多永久的crontab文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆