ASPL User Manual v 1.00
© 2025 SetSphere.com


12-19

   Merging Shell Variables: progenvshellsmerged.aspl

How to inspect and compare UNIX shell variables between two programs by gathering them into groups, then comparing them as elements of the groups.

 -LIS- Listing. 12.19.1   [LISTING progenvshellsmerged.aspl][ASPL Script progenvshellsmerged.aspl]
(raw text)
1.      #!/usr/bin/env aspl
2.      #ENVARG= -wsname TRANSIENT -groupingclass SYSENVGROUP -nostrictld 
3.      
4.      ;;***********************************************************************
5.      ;;   progenvshellsmerged.aspl
6.      ;;   merge the environment variables of two shell scripts and compare them
7.      ;;   
8.      ;;   Copyright © 2021-2025 Bassem W. Jamaleddine
9.      ;;   Copyright © 2025 Total Computing & Network Design, Inc.
10.     ;;   All rights reserved.
11.     ;;***********************************************************************
12.     
13.     endScriptIfShellArgsLessThan 1  ;; end the script unless at least one 
      argument 
14.     
15.     printblock *** MERGING SHELLS ENVIRONMENT VARIABLES TO COMPARE THEM ***
16.     M1 = ggshellsenvmerged(grp1,L,shells,$1,everything,1,leftmost1st,1)
17.     M2 = ggshellsenvmerged(grp1,L,shells,$1,everything,1)
18.     ,fU M1 M2
19.     
20.     dm 3
21.     v
22.     
23.     __END__
24.     
25.       $00 command to merge the environment variables of a serie of shell scripts
26.       and display them.
27.     
28.          $00 must be followed a serie of shell scripts separated by | pipe symbol
29.     
30.       Example:
31.         $00  "/tools/env/setj.sh w130 | /tools/env/setj.sh w142"
32.         $00  "/tools/env/setj.sh w141 | /tools/env/setj.sh w142"
33.         $00  "/tools/env/setj.sh w160 | /tools/env/setj.sh j160"
34.         $00  "/tools/env/setj.sh w130 | /tools/env/setj.sh w141 | 
      /tools/env/setj.sh w142" 
35.     
36.       Compare WebSphere stopNode.sh to runConfigActions.sh
37.         $00  "/opt/WAS9/ASrv/bin/stopNode.sh | 
      /opt/WAS9/profiles/ASrv1/bin/runConfigActions.sh" 
38.     

ASPL© 2025 Bassem Jamaleddine




This example is shown in the following terminal.

viewme

 -TC- Display. 12.19.1   [Script progenvshellsmerged.aspl]
run for progenvshellsmerged-aspl-links