My Services WebSphere Training | JEE Build & Deploy | Automatic Linux Provisioning
Lets say you have a shell script that calls a JACL script to get cluster status:
The libe below call the JACL script and captures the output to the console in the value returnval returnVal=`../wsadmin.sh -f ./ccs_start_clusters.jacl $clusterName` In the JACL script you can have logic that will only ever put a value to the console ie (stdout) using the outs (Put String) command e.g a Line of JACL setting a value to the screen based on a condition etc. puts "running" this is a simple way to allow a shell script to get a value from JACL.
Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.
Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.
Follow Steve as @stevencrobinson on twitter.
IBM WebSphere Application Server 8.0 Administration Guide
WebSphere Application Server 7.0 Administration Guide