1

set echo off and on

view story
linux-howto

http://www.unix.com – Hi I have written a bash script to capture the output of jmap. The command i execute is jmap -heap <pid> This gives details of memory usage of the process with <pid>. Now jmap not only gives this info but also prints couple more lines, which i am not interested in. Here are the lines that I am not able to capture and I dont want these lines to be echoed HTML Code: Attaching to process ID 20850, please wait... Debugger attached successfully. Server compiler detected. JVM version is 17.1-b03 I tried to set echo off before executing jmap and set echo on after this statement, (HowTos)