aspose file tools*
The moose likes Linux / UNIX and the fly likes How to create a cron job Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to create a cron job " Watch "How to create a cron job " New topic
Author

How to create a cron job

Vibhu sivam
Greenhorn

Joined: May 24, 2012
Posts: 3
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
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 923
    
    1

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


OCPJP 6(100 %) OCEWCD 6(91 %) OCPJBCD(93%)
Karn Kumar
Ranch Hand

Joined: Aug 06, 2009
Posts: 143


This might help you in some way..

http://www.coderanch.com/t/554494/gc/Cron-Expression-After-Every-days
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create a cron job
 
Similar Threads
Java Certification Voucher
Regarding SCJP Voucher
command to run a cron job
Timers
Sun Voucher for sale @ Pune,India @ Rs 4K.