This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes WAS Scripting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WAS Scripting" Watch "WAS Scripting" New topic
Author

WAS Scripting

Chad Emerson
Greenhorn

Joined: Jan 23, 2006
Posts: 2
We have an application that has to be restarted on a daily basis. The developer is working on fixing a memory leak issue, has been for weeks now...
What I would like to do is write a job that would run daily to restart the app every night. Does anyone have any experience,tips, or examples that could get me going in the right direction? I am running WAS 5.1.x on Windows 2k3.

Thanks!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The job should do this: Go to your websphere/appserver/bin directory and runwhere restart.scr is in that same directory and containsYou can schedule this to run daily using the Windows "Scheduled Tasks" application.
[ January 23, 2006: Message edited by: Paul Clapham ]
Chad Emerson
Greenhorn

Joined: Jan 23, 2006
Posts: 2
Thanks for the reply. Do you run this from the deployment manager? What about checking to see if the application has actually stopped before you try starting it? Is there any good site that have examples that you know of?

Thanks again for the help.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

No, I run it from the command line.

If you want to know more about command-line administration and scripting, that's Chapter 16 of the System Management and Configuration redbook (SG24-6195-01).

(I haven't got very deeply into that, I just have a single script that installs a new version of an application. What I posted is part of that.)
Julio Rios
Greenhorn

Joined: Sep 27, 2007
Posts: 2
Is this using Jacl? Someone please explain? This is exactly wht i need.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WAS Scripting
 
Similar Threads
Anybody jus started preparation for SCJP?
static HTML output
heap size hosting plan
Bear's new boots
XSD valdation