ASPL Manual v 1.00
© 2024 by SetSphere.COM


12-16

   Script reapenv.aspl

The script reapenv.aspl reaps the environment of the program supplied as an argument to it. In the following example we show how to use the script to reap the environment of WebSphere JVM processes started by runConfigActions.sh, and compare the environment variables using ASPL set operators.


       [Top Text]

 -L- Listing. 12.16.1   [LISTING reapenv.aspl][ASPL Script reapenv.aspl]
(raw text)
1.     #!/usr/bin/env aspl
2.     #ENVARG= -wsname TRANSIENT -groupingclass SYSENVGROUP -nostrictld  
3.     
4.     ;;***********************************************************************
5.     ;;   reapenv.aspl
6.     ;;   
7.     ;;   Copyright © 2021-2024 Bassem W. Jamaleddine
8.     ;;   Copyright © 2024 Total Computing & Network Design, Inc.
9.     ;;   All rights reserved.
10.    ;;   
11.    ;;***********************************************************************
12.    
13.    endScriptIfShellArgsLessThan 1  ;; end script unless an argument is passed
14.    
15.    ggreapenv(grp1,LABEL,program,$1,onlychanged,1,reaptimeout,2,nohup,1)
16.    ;;ggreapenv(grp1,LABEL,program,$1,onlychanged,0,reaptimeout,2,nohup,1)
17.    
18.    __END__
19.    
20.      $00 command harvest the environment variables of a program
21.    
22.         $00 must be followed the program name
23.    
24.      Examples:
25.    
26.         $00 "/opt/IBM/WebSphere/AppServer/bin/startServer.sh server1"
27.    
28.         $00 "ls -l"
29.         $00 "whichma R+ aspl"
30.    

ASPL(C) 2024 Bassem Jamaleddine




This example is shown in the following terminal.

       display or terminal for Example: Script reapenv.aspl
viewme

 -E- Display. 12.16.1   [Script reapenv.aspl][Script reapenv.aspl]
run for reapenv-aspl-runConfigActions-links


       display or terminal for Example: Script reapenv.aspl running startServer.sh
viewme

 -E- Display. 12.16.2   [TERMINAL reapenv-aspl-startServer][TERMINAL reapenv-aspl-startServer]
run for reapenv-aspl-startServer-links