Changeset 18 for trunk/oar/oar-envsh


Ignore:
Timestamp:
Nov 29, 2011, 4:13:53 PM (12 years ago)
Author:
g7moreau
Message:
  • Format in smaller line
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oar/oar-envsh

    r16 r18  
    11#!/bin/bash
    22#
    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.
    45#
    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)
    713#
    814
     
    1218MYENV=$( env \
    1319   | 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=" \
    1525   | sort \
    1626   | sed -e s"/^/export /" \
Note: See TracChangeset for help on using the changeset viewer.