ASPL Manual v 1.00
© 2024 by SetSphere.COM
12-16
[Top 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.
This example is shown in the following terminal.
display or terminal for Example: Script reapenv.aspl
display or terminal for Example: Script reapenv.aspl running startServer.sh