LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cron.daily (https://www.linuxquestions.org/questions/linux-general-1/cron-daily-50644/)

MrJoshua 03-19-2003 09:55 AM

cron.daily
 
I have recently wrote a new script that will automate a task that one of my users had to do daily. I want write a script that will execute with cron.daily. My questions is do I simply write the cron script, and put it in the /etc/cron.daily/ directory? or do I also have to edit something else that will allow it to be executed.

Mik 03-19-2003 10:04 AM

Those directories are created for easy use. Every script found in that directory should be started. So all you have to do is create the script and place it there.
Do take into account that the cron script might have a different environment then when you run it as a normal user.

MrJoshua 03-19-2003 12:09 PM

Man thanks for the info, I wrote the script put it in there and it worked fine.


All times are GMT -5. The time now is 05:23 PM.