Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
where do i set the time so it runs daily or on the hour? or if i want it to run at a cetain time? dont i have to set some paremeters? if i place it in the folder how does it know when to run at a cetain time?
that depends on distribution.
ROCK, for example, runs the /etc/cron.daily/* files every night at 5 AM. Other distributions might have different times.
If you want to be certain, put the file into ~/bin and enter it into your crontab.
For example, to have a script run every night at 5 AM:
in my cron job i have below. I have script.sh in my root folder and i want it to run every day at 1045am. Heres what i have. Now the last line is what i added. also what does this mean ~/bin is that the root bin folder?
Originally posted by petenyce also what does this mean ~/bin is that the root bin folder?
~/bin means the "bin" directory in the users home directory. ~/ always references the home directory. For a user account, this is usually /home/<username> and for the root user this is usually /root/
well i dont get it. my script.sh is in my root folder. i restarted the crond dameon. and nothing seems to work..... im trying to run my exe at any time today to see if it works. this code below is in my crontab file? Cna i have a example to get this to run
i changed my script below and it dosent run my script???
im logged in as root and placed my file in /usr/local/sbin. im trying to run this script every so minutes to test??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.