|
|
09-02-2011
, 03:28 PM
|
|
Posts: 451 |
Thanked: 327 times |
Joined on Sep 2009
|
#12
|
where in script.sh you source environment and then exec bash, will substitute your current shell with the one from the script. This will give you all environments you need, and will not open chain of subshells.
|
|
09-08-2011
, 10:02 AM
|
|
Posts: 451 |
Thanked: 327 times |
Joined on Sep 2009
|
#14
|
|
|
09-08-2011
, 10:08 AM
|
|
Posts: 451 |
Thanked: 327 times |
Joined on Sep 2009
|
#16
|
![]() |
| Thread Tools | Search this Thread |
|
#!/usr/bin/env ksh PID=$PPID echo "Modifying $PID to set $1" TMPFILE=/tmp/tre.tmp cat<<EOF >$TMPFILE attach $PID call putenv ("$1") detach EOF cat $TMPFILE gdb -batch -x $TMPFILE > /dev/null rm $TMPFILE