Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
how to execute an application/program after a certain amount of time has passed
hi
I have the following problem...
I have a program (c++ code) which updates some logs...
I was wondering that is there a way by which i can execute this code/program after every two (or what ever time period expires )by creatiing some sort of script which runs automatically after every two hours and updates the logs by using the program ...
I mean to say that once i run the script the program will be executed after every two hours...
thanks
p.s. if this forum is not for these sort of question i am deeply sorry...
Sounds like a job for cron or at. "man at", "man cron", "man 1 crontab" and "man 5 crontab" for details, then come back and tell us if it's not what you want, or if it is and you need more help.
i just looked at the man file for crontab...i think that is probably what i am looking for...I am new to Linux...so i might need a couple of days to tell you if i get it working for me...thanks so much for the help...
hi
i tried using cron.hourly folder in /etc to run the program by using a shell file..
the shell file only contains the path of the program(named testme which i copied in the cron.hourly folder) which i want to run i.e.
the contents of the shell file (which i named test.sh) are as follows
./testme
but the program testme is not running ...i used chmod for both files...i did check that the cron was running... i am logged in as root user ... am i missing something...?
thanks...
thanks
a lot guys it did help... i did what ever there was in the tutorial...but i still can't get it working...i think i am missing something in the script... i guess i have to look for some shell scripting tutorial now...thanks a lot for helping everyone...
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it. subscribe
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe