Scheduling tasks on Linux using crontab



Posted by lionel319 @ Tue 13 May, 08, 05:12PM under Work



Have been hearing all about cronjobs crontab crond cron crom crom crom crom ~~~~~~ everyday, but think is the first time I really look deep into it.



A detail explanation can be found here.


Still, after reading it, I found it kinda not that flexible, at least not to the extend of what I was trying to achieve. Decided to might as well write my own simple cron job.


#!/apps/perl/bin/perl

while (1)
{
   # Do anything you want over here.
   # bla bla bla
  

   sleep( 86400);   # Repeat task every day
} # while
 



Yeah. I know it is cheap :P
who cares, so long it gets the job done
;)





leave me a message
Name
Enter the Code below
(only contain alphabets):
Website
Rating Worst Best

popo @ Wed 14-05-08 11:17AM
Noob, let me show you the way.
lionel @ Wed 14-05-08 12:18AM
ok. tomorrow i come over.
u teach me,
ahlik @ Tue 13-05-08 10:18PM
Come I teach, one Coke.
lionel319 @ Tue 13-05-08 06:58PM
hehehehehe
maybe it's just an excuse for me to not to dig deep into the crontab format :P
ahlik @ Tue 13-05-08 06:06PM
What not flexible?
Search

Back to TextMalaysia Home
TextMalaysia.com is Powered by TinyMCE

Subscribe to this blog
RSS Feed for lionel.textmalaysia.com
Categories
Archive



© TextMalaysia is a free blogging service powered by WSATP