sorry to dig this up again.
correct me if i'm wrong. I did some reading on crontab and launchd. Its like setting up a "schedule" for some command to run. Now the question is, how am i going to write the actual command/instruction that is going to used for crontab and launchd?
Depends in 10.4.x it is Cron and in 10.5.x it is Launchd. Well it sounds as if you want to take a look at the donationware application Lingon.
Now most of the log rotation in 10.5 is already it OS X and they talk about that in the whole article Running the Mac OS X maintenance scripts. Now clearing the Users Cache is another thing entirely and that is why I listed the freewarewares earlier in the thread (that also do the log rotating as a side benefit.
Thanks for the tip Satcomer. I've downloaded Lingon for 10.4 and I am wondering how am I going to write some custom ProgramArguments. I am thinking of writing and adding in some custom command apart from the one that is already available. Some of the custom stuff I would like such as disconnect all mounted server if leave idea for 15 minutes. Cleaning the desktop after each reboot....etc