Opening a console window for interactive scriptingAdded by IBM on June 24, 2012 | Version 1 (Original)
|To start the Portal Scripting Interface from a console window, use the procedure described here.
To start the Portal Scripting Interface from a console window, use the procedure described here.
Parent topic: Getting started with the Portal Scripting Interface
Logging in to the portal
Working with portal pages and other resources
Getting help for a command
Logging out of the portal
- Change into the directory where your Portal Scripting Interface is installed:
- Call the Portal Scripting Interface startup command file:
You must indicate that you want to enter the commands in Jython as follows: -lang jython
. If you prefer to use the JACL Syntax, you can type -lang jacl
- Type the command as follows: ./wpscript.sh -lang jython.
This command starts the interactive scripting console. The Portal Scripting Interface prompts you for a user ID and password. The Portal Scripting Interface is an extension to the WebSphere® Application Server wsadmin tool.
- Use a valid WebSphere Application Server administrator user ID.
The Portal Scripting Interface returns the following response:
WASX7209I: Connected to process "WebSphere_Portal" on node wpsbvt using SOAP connector;
The type of process is: UnManagedProcess
WASX7031I: For help, enter: "print Help.help()"
- You can now enter Portal Scripting commands as required. You can also use all the available WebSphere Application Server wsadmin commands.