Linux - GeneralThis 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.
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.
I'm running the default pop3 & imap servers that comes with redhat9.0, I don't think they have name. and I have a webmail which is squirrelmail (also comes with redhat and I love it)
now, how could I run a php script every 24h?
I could launch galeon and set the homepage to be the script but that wouldn't be an ideal solution, even more if I can't close it after...
if the intention of the script is to gather the usernames from /var/log/maillog and create a list of active mail accounts then I wouldnt have thought that using php was necessary.
bash scripting should be able to cope easily enough, and can be run as a cron job as often as needed.
as you say setting the php script as your homepage and starting a browser is not the answer :-)
well, the purpose of the script is to analyse /var/log/maillog and update a mysql database... I know how to update the DB via php but I don't know if it is possible with bash.
I'm sure the analysis of maillog can be done by both.
do you know how to add a cron job and tell it to run every 24h?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.