Thanks Craig,

The example is just what I needed!

Sincerely,

Tom Kochanowicz


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Craig
R. McClanahan
Sent: Friday, March 31, 2000 2:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Executing a servlet at a Certain Time


"blueads.com" wrote:

> Grant,
>         Thanks for the "idea" of a solution. The "AT" command sounds like
a crontab
> in UNIX. Does anyone on the list know if it is possible (have an example)
to
> execute a servlet with the "AT" command?
>

This is actually pretty easy, thanks to the java.net.URLConnection class.
You can just
write a little Java application that performs a request to the appropriate
URL to
trigger the action you want.

There is example code for using this class in the Java Language Tutorial at
<http://java.sun.com/docs/books/tutorial>, in the networking trail.

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to