• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running standalone in CRONTAB

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic