Changeset 104


Ignore:
Timestamp:
May 14, 2014, 6:32:37 PM (10 years ago)
Author:
g7moreau
Message:
  • Add support for ulimit -s
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oarutils/oar-envsh

    r29 r104  
    1616shift
    1717
     18ulimit_s=$(ulimit -s)
     19ulimit_n=$(ulimit -n)
     20ulimit_l=$(ulimit -l)
     21
    1822MYENV=$( env \
    1923   | grep "^[ABCDEFGHIJKLMNOPQRSTUVWXYZ]" \
     
    2731   | tr [\\\n] [\;] )
    2832
    29 exec /opt/oar/current/bin/oarsh $HOST "$MYENV $@"
     33exec /opt/oar/current/bin/oarsh $HOST "ulimit -s ${ulimit_s}; $MYENV $@"
    3034
    3135exit
Note: See TracChangeset for help on using the changeset viewer.