jps_stat
jps_stat copied to clipboard
jps log output
hello, when I log into a log file I have a problem with special char at the begining.
How to remove them ?
===== ============================== ======= ======= ====== ====== ===== PID Name CurHeap MaxHeap CurRAM MaxRAM %_CPU ===== ============================== ======= ======= ====== ====== ===== 10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0 ^[[1A10724 org.eclipse.osgi_3.9.1.v201401 36 36 60 60 0
best bruno
That special char at beginning is because of tput.
To solve this, we can have an option to write directly to a file and do not write tput in that. This will fix the illegal char.