[英]Cron job without crontab in linux
I have moodle installation on linux platform. 我在Linux平台上安装了moodle。 I want to set up a cron job for sending e-mails to users.
我想设置一个cron作业,用于向用户发送电子邮件。 I've read about using crontab program and configuring it.
我已经阅读了有关使用crontab程序并对其进行配置的信息。
But according to my client requirements I want to execute it WITHOUT using crontab. 但是根据我的客户要求,我想不使用crontab来执行它。
Can anybody help me on this? 有人可以帮我吗?
Thanks in advance... :) 提前致谢... :)
Have you tried while
, loop
? 你试过
while
, loop
吗?
Example: 例:
while true;
do echo "Hello" ;
sleep 100;
done &
So you can enter your command / email script after do
, or you can make a script for email process and called after do, 因此,您可以在
do
之后输入您的命令/电子邮件脚本,也可以为电子邮件处理创建脚本并在do之后调用,
Note: kindly add end & symbol, so this will get execute in background. 注意:请添加结束符和符号,以便在后台执行。
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.