Olof Schonbeck: #!/bin/bash ------------------------------------------------ MQM ------------------------------------------------ for f in `ipcs | grep mqm | awk {' print $2 '}` do ipcrm sem $f done for f in `ipcs | grep mqm | awk {' print $2 '}` do ipcrm shm $f done for f in `ps -efa | grep mqm | awk {' print $2 '}`;do kill -9 $f; done; for f in `ps -efa | grep mqm | awk {' print $2 '}`; do print $f; done ------------------------------------------------ WASADMIN ------------------------------------------------ for f in `ipcs | grep wasadmin | awk {' print $2 '}` do ipcrm sem $f done for f in `ipcs | grep wasadmin | awk {' print $2 '}` do ipcrm shm $f done for f in `ps -efa | grep wasadmin | awk {' print $2 '}`; do echo $f; done for f in `ipcs | grep mqm | awk {' print $2 '}` do ipcrm sem $f done for f in `ps -efa | grep wasadmin | awk {' print $2 '}`; do kill -9 $f; for f in `ipcs | grep mqm | awk {' print $2 '}`; do ;ipcrm sem $f ====================================================== Export Display -------------- Start xwindows: cygwin> startx in child window: cygwin> xhost + Log into admin: export display export DISPLAY=10.20.11.159:0.0 MOZILLA IS LOCATED ON ADMIN IN /ROOT DIRECTORY Run Mozilla cd mozilla ./run-mozilla.sh & ---- Open a new admin window: ssh port ssh -L9080:172.21.5.224:9080 172.21.5.224 Nick , I have created you an id on admin server to logon to the prod server (WES US) i) login to admin : ssh admin ii) from admin export DISPLAY=ip(laptop):0.0 iii) cd /home/nadams/mozilla/ and run the script ./ run-mozilla.sh & iv) ssh –L9043:172.21.5.82:9043 172.21.5.82 v) on the browser : enter : https://localhost:9043/admin ====================================================== This uses the FIND command to seach through a directory display the info "-ls" then AWK displays the fields 3, 5,6, etc. Grep pulls out 'root' find /opt/WebSphere/ -ls | awk '{print $3 " "$5 " "$6" "$9" "$10 " " $11}' | grep root ====================================================== == SCP ====================================================== scp /tmp/myfile user@ip.address:/tmp/ ====================================================== BASH Environment Variable ====================================================== PATH=$PATH:/u01/app/oracle/product/9.2.0/bin/