Most Operating Systems support task schedulers for calling scripts/programs, etc. (Ex AT in widows).
I'm not sure why you need to do it from Java... ... but one approach is to write a java client program; have the java program called through the Operating System scheduler, and have the java client program access your classes/ejb's/database/etc - to figure out whatever it is that you're making the call from Java for - and then turn around and execute the required shell script. -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Murali Mohan Sent: Wednesday, June 05, 2002 7:00 AM To: [EMAIL PROTECTED] Subject: How to call the shall scripts periodically(Time based) Hai, I have to call the shall scripts periodically(Time based). What is procedure for it. Thanks, Murali "Artigas, Ricardo Y." wrote: > You can invoke exec() from Runtime class: > E.g.: > Process child = Runtime.getRuntime().exec(command); > > :~) > Ricky Y. Artigas, MCDBA > Microsoft Certified Professional > Database Administrator / > Systems Analyst/Programmer > Information Technology Division > Easycall Communications Phils., Inc. > Tel #: (632) 5338001 loc.6610 > > > ------------------------------- > > IMPORTANT NOTICE: > > > This message (and any attachment hereto) may contain privileged and/or > > confidential information specific to EasyCall. If you are not the intended > > addressee indicated in this message, you may not copy or disseminate this > > message (or any attachment hereto) to anyone. Instead, please destroy this > > message (and any attachment hereto), and kindly notify the sender by reply > > email. Any information in this message (and any attachment thereto) that > > do not relate to the official business of EasyCall shall be understood as > > neither given nor endorsed by the company. > > > > > > -----Original Message----- > > From: Murali Mohan [SMTP:[EMAIL PROTECTED]] > > Sent: Wednesday, June 05, 2002 3:24 PM > > To: [EMAIL PROTECTED] > > Subject: How to run Shall Scripts from Java > > > > Hai, > > > > How to run Shall Scripts from Java? I am using JSP and Java Beans. > > > > Thanks in advance. > > > > Murali > > > > ========================================================================== > > = > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > > JSP-INTEREST". > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > > DIGEST". > > Some relevant FAQs on JSP/Servlets can be found at: > > > > http://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > =========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
