Forums Register Login

How to create a cron job

+Pie Number of slices to send: Send
Dear ,

I have a struts application running in linux server. Please let me know how to run a cron job.Let me explain the scenario.
The users of the said application registers for the services for a particular time period. There is an expiry date for these members after which the users cannot login.
So on the expiry date , I want to set the users status as "In active" . The expiry date is already captured in the database(MySQL) . I thought of comparing this date with the current system date
and deactivate the members. Please let me know how to write and set a cron job for this. OR is there any better method to do this?

Request you help in this

Thanks
Vibhu
+Pie Number of slices to send: Send
 

Vibhu sivam wrote:Dear ,

I have a struts application running in linux server. Please let me know how to run a cron job.Let me explain the scenario.
The users of the said application registers for the services for a particular time period. There is an expiry date for these members after which the users cannot login.
So on the expiry date , I want to set the users status as "In active" . The expiry date is already captured in the database(MySQL) . I thought of comparing this date with the current system date
and deactivate the members. Please let me know how to write and set a cron job for this. OR is there any better method to do this?

Request you help in this

Thanks
Vibhu



why can't you do this in your application itself
+Pie Number of slices to send: Send
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1780 times.
Similar Threads
Regarding SCJP Voucher
Sun Voucher for sale @ Pune,India @ Rs 4K.
Java Certification Voucher
Timers
command to run a cron job
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:14:37.