Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-19-2003, 10:55 AM   #1
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Rep: Reputation: 31

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.
Old 03-19-2003, 11:04 AM   #2
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.
Old 03-19-2003, 01:09 PM   #3
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Original Poster
Rep: Reputation: 31
Man thanks for the info, I wrote the script put it in there and it worked fine.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job Daily petenyce Linux - Newbie 17 01-04-2006 12:13 PM
cron.daily question ralvy Slackware 6 12-09-2004 11:55 PM
crontab vs cron.daily ? SheldonPlankton Linux - Newbie 1 07-16-2004 01:10 PM
cron.daily error gjmwalsh Mandriva 2 10-29-2003 03:12 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration