cron will execute a variety of commands and scripts. I don't know what is allowed or what is not allowed. Seeing as mail() in php is disabled by default, I would think that using cron to send mail would not be allowed by default. I'm pretty sure you can do this with a python script or straight up shell commands.
I have a text file in my root dir that has a few lines. I have a cron script that updates this text file a few times throughout the day. I would like that same script to e-mail a copy of the text message to my yahoo account as it runs.
I'm not real sure how to set up the crons, but the rule in the past has just been that as long as your not running your crons every minute, you should be fine. Even if you're running the crons like once an hour, that won't put too much stress on the server, just as long as it's not a big long complex script, it should be fine to run a few times a day. If you have any more questions about this, just ask.
Can somebody to tell me which setting should I make to set up cron jobs.
I read almost everything about these on this forum, and tried several methods, but without success. My php script works fine trought the browser. I dont receive notification e-mails too. I try these settings:
php -q /home/kurs/etc/cron.php
Once per a day at different hours and minutes. File permissions changed to 755 and 777 (in etc directory). Put in the first row of file (/home/kurs/public_html/xhtml/cron.php) these parameters:
and in the file (/home/kurs/etc/cron.php) these:
I am very sad because that. Please help me, if you know.