Computing.Net > Forums > Programming > running jsp in cron

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

running jsp in cron

Reply to Message Icon

Name: vikont
Date: January 27, 2005 at 10:43:03 Pacific
OS: Win2000
CPU/Ram: na
Comment:

I have a .jsp file that does some work.
I need it to run every night at, let's say 11pm.
How can i put it in cron?
All it needs to do is to hit that jsp file.
let's say the path is
http://domain.com/building/floor/room.jsp
How can i have cron hit this URL every night?

Thank you



Sponsored Link
Ads by Google

Response Number 1
Name: Guy
Date: January 27, 2005 at 18:13:18 Pacific
Reply:

Win2K and cron, huh?

I don't really know what platform this needs to run on, so ...

-Put the job in your crontab
-The job executes a script/program that does the HTTP connect, etc ...

The script/program that does the connect should be in a language available on Win or Unix. Candidates are many: Java, Ruby, Perl, Python, PHP, and I am sure there are many others .......

Guy


0

Response Number 2
Name: vikont
Date: January 31, 2005 at 10:46:58 Pacific
Reply:

No, i'm not trying to run it on Win machine. It will be running on Unix sever.
So i just need to know if it's possible not writing the script but simply call the java class file in cron so that it will execute it.
Something like this:
00 23 * * * /usr/j2se/bin/java -classpath /abc/webserver/https-myserver/../../RunCreateRandomFiles.class

Ans this class would do the required work...
???


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: running jsp in cron

running processes..in VC++ www.computing.net/answers/programming/running-processesin-vc/10533.html

urgent help in jsp www.computing.net/answers/programming/urgent-help-in-jsp/10248.html

database Connectivity through JSP www.computing.net/answers/programming/database-connectivity-through-jsp/6061.html