Changeset 18
- Timestamp:
- Nov 29, 2011, 4:13:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oar/oar-envsh
r16 r18 1 1 #!/bin/bash 2 2 # 3 # This wrapper try to remove system's unmodified environment variables and propagate user environments on the nodes. 3 # This wrapper try to remove system's unmodified environment variables 4 # and propagate user environments on the nodes. 4 5 # 5 # version 1.0 by Nicolas Capit (initial version for PATH and LD_LIBRARY_PATH) 6 # version 1.1 by Patrick Begou (All the environment excepted.... that could make problems!) 6 # This script is licence under the same licence as OAR program 7 # GNU GENERAL PUBLIC LICENSE 8 # http://oar.imag.fr/ 9 # 10 # 1.0 Nicolas Capit (initial version for PATH and LD_LIBRARY_PATH) 11 # 1.1 Patrick Begou (all the environment excepted... that could make problems!) 12 # 1.2 Gabriel Moreau (format and licence) 7 13 # 8 14 … … 12 18 MYENV=$( env \ 13 19 | grep "^[ABCDEFGHIJKLMNOPQRSTUVWXYZ]" \ 14 | egrep -v "^USER=|^TERM=|^OAR|^SGE_|^LS_COLORS=|^ENV=|^BASH_ENV=|^HOSTNAME=|^LOGNAME=|^MAIL=|^MANPATH=|^OMPI_MCA_plm_rsh_agent=|^PWD=|^SHELL=|^SSH_|^SUDO_COMMAND=|^HOME=|^DISPLAY=|^SHLVL=" \ 20 | egrep -v "^USER=|^TERM=|^OAR|^SGE_|^LS_COLORS=\ 21 |^ENV=|^BASH_ENV=|^HOSTNAME=|^LOGNAME=|^MAIL=\ 22 |^MANPATH=|^OMPI_MCA_plm_rsh_agent=|^PWD=\ 23 |^SHELL=|^SSH_|^SUDO_COMMAND=|^HOME=|^DISPLAY=\ 24 |^SHLVL=" \ 15 25 | sort \ 16 26 | sed -e s"/^/export /" \
Note: See TracChangeset
for help on using the changeset viewer.