Saurabh
Saurabh

Reputation: 40

Cron job without crontab in linux

I have moodle installation on linux platform. I want to set up a cron job for sending e-mails to users. I've read about using crontab program and configuring it.

But according to my client requirements I want to execute it WITHOUT using crontab.

Can anybody help me on this?

Thanks in advance... :)

Upvotes: 0

Views: 1714

Answers (1)

Ranjithkumar T
Ranjithkumar T

Reputation: 1956

Have you tried 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,

Note: kindly add end & symbol, so this will get execute in background.

Thanks.

Upvotes: 2

Related Questions