cron
sometimes i forget about the great tools that i've learned about.
there is someone at a remote site that has some crappy software that breaks. the support people can't figure it out and suggest re-installing or upgrading neither of which are simple fixes. the problem goes away if the tomcat service (used to serve up jsp pages) is restarted every morning on the mac server that hosts it.
after scratching my head a day or two i realized while in the bathroom (it was while shaving for einstein ha ha ha) that since the mac os is unix-based, i could write a small shell script which shuts down tomcat, waits 10 seconds, and restarts tomcat in three lines of code and then add a line in the "crontab" file which is the table containing programs that should should run automatically at regular intervals (hence the "cron"-> "cronos"->"time" (or maybe it has nothing to do with greek) ).
i inserted a line into this file which will run my script every morning at 6 am. hopefully the problem will dissappear and i never had to risk further problems with a reinstall or with an upgrade.
there is someone at a remote site that has some crappy software that breaks. the support people can't figure it out and suggest re-installing or upgrading neither of which are simple fixes. the problem goes away if the tomcat service (used to serve up jsp pages) is restarted every morning on the mac server that hosts it.
after scratching my head a day or two i realized while in the bathroom (it was while shaving for einstein ha ha ha) that since the mac os is unix-based, i could write a small shell script which shuts down tomcat, waits 10 seconds, and restarts tomcat in three lines of code and then add a line in the "crontab" file which is the table containing programs that should should run automatically at regular intervals (hence the "cron"-> "cronos"->"time" (or maybe it has nothing to do with greek) ).
i inserted a line into this file which will run my script every morning at 6 am. hopefully the problem will dissappear and i never had to risk further problems with a reinstall or with an upgrade.
3 Comments:
At 8:10 AM ,
frylime said...
micturating for novel ideas...what an experience!
At 10:19 PM ,
POPPA said...
Anxious to hear if it works. Am envious of your problem-solving abilities... keep up the good work!
At 10:36 AM ,
huitzilopochtli said...
it did work... well, once i learned to spell the name of the program correctly.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home