aspose file tools*
The moose likes Linux / UNIX and the fly likes Running standalone in CRONTAB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Running standalone in CRONTAB" Watch "Running standalone in CRONTAB" New topic
Author

Running standalone in CRONTAB

Prashanth Chandra
Ranch Hand

Joined: Dec 07, 2005
Posts: 79
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

Joined: Jul 08, 2003
Posts: 24184
    
  34

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?


[Jess in Action][AskingGoodQuestions]
Gerardo Tasistro
Ranch Hand

Joined: Feb 08, 2005
Posts: 362
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running standalone in CRONTAB