Common JACL script for Windows and Unix platforms
 Technote (troubleshooting)
 
This document applies only to the following language version(s):
English
 
Problem(Abstract)
Java™ Comand Language (JACL) scripts work on both UNIX® and Windows® platforms unless there is a space in the directory structure. Use of {} works in such cases; however, the same script does not work on UNIX. Is there a way to write scripts that work on both Unix and Windows platforms?
 
Resolving the problem
Use of backslash "\" example
Here is a portable script containing a space in the directory structure that works both on Windows and Unix platforms:
set plugin [$AdminControl completeObjectName type=PluginCfgGenerator,*]

$AdminControl invoke $plugin generate "\"/opt/program files/WebSphere/Ap
pServer\" \"/opt/program files/WebSphere/AppServer/config\" waslinux
null null plugin-cfg.xml"
 
Related information
IBM site
External JACL/TCL guide
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers WebSphere Application Server Admin Interface (for example: console or web or command line) AIX, Linux, Multi-Platform 5.0.1, 5.0.2, 5.0.2.1 Base, Network Deployment
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Administrative Console (all non-scripting)
Operating system(s): Windows
Software version: 5.0.2
Software edition:
Reference #: 1162157
IBM Group: Software Group
Modified date: Sep 10, 2004