Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jps log output #5

Open
shakenfr opened this issue Apr 26, 2019 · 1 comment
Open

jps log output #5

shakenfr opened this issue Apr 26, 2019 · 1 comment

Comments

@shakenfr
Copy link

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

@amarjeetanandsingh
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants