PQ60191: WSCP.SH DOES NOT CORRECTLY PROVIDE RETURN VALUES IF THE COMMAND FAILED FOR SOME REASON | |||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description With version 4.0.2 we noticed that wscp.sh does not correctly provide return values if the command failed for some reason. This makes it extremly to use this tool in scripts because we have to make sure that we handle errors correctly. To reproduce the problem do: wscp.sh -c "ApplicationServer start {/Node:wsmajestix/Applicat ion Server:gugus/}" >> WSCP061E: Object not found .... echo $? returns RC 0 that is wrongLocal fix There is no workaround for this. A fix will be provided.Problem summary **************************************************************** * USERS AFFECTED: All users of WebSphere Application Server * * 4.0.0, 4.0.1, 4.0.2, 4.0.3. * **************************************************************** * PROBLEM DESCRIPTION: WSCP was not correctly passing the * * return values for failed commands. * **************************************************************** * RECOMMENDATION: * **************************************************************** Return code from wscp.sh (or wscp.bat) is always 0 regardless of whether operation was successful or not.Problem conclusion Changed code so that if an operation fails when wscp is operating in command mode (wscp -c) or script mode (wscp -f), then wscp will exit with the errorCode set by the method that handled the failing operation.Temporary fix Test fix sent to L2 on 07May02Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
SRLS
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ60191
IBM Group: Software Group
Modified date: Jun 28, 2002
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.