Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running standalone in CRONTAB

 
Prashanth Chandra
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have been trying to run a standalone using a crontab. I have tried running a servlet using crontab and it run fine and i got the desired output. But when i try to do the same using a standalone it does not work. Could someone please help me out of this.

I am running the crontab using the sevlet this way.
15 13 1-31 1-12 0-6 GET http://203.196.150.184/administration/xyz.jsp

I have put the standalone in a .sh file and i am trying to call the file in crontab which is not working.


regards
Prashanth
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know what a "standalone" is, but I can tell you that unless you've got a program called "GET" someplace, this isn't going to do anything but error out. Can you use "wget" or something similar?
 
Gerardo Tasistro
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try


curl http://203.196.150.184/administration/xyz.jsp

It will work if your java server is running on that IP on port 80 or you're using mod_jk on apache or something similar. Otherwise try:

curl http://203.196.150.184:8080/administration/xyz.jsp

Which I'm assuming you have tomcat or similar web container running on port 8080.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic