I am using Putty to connect to Linux server .
I opened a Log file in Linux server using the $ tail -f error_log
A log file has been displayed .
Please tell me how can i do ps –ef|grep java on to the opened Log file
Thank you .
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Your question is hard to understand but I think I know what you're asking. Doing this:
will show you lines with the text | |||
|
feedback
|
|
If you just want a regularly updated list of java processes, you can use
| |||
feedback
|
|
And if you don't want a regularly updated list of the process you are looking for you can do so:
and when inside the file reading, just do a simple search for what are you looking for.
and press 'n' for next result. Check this link: http://vim.wikia.com/wiki/Search_and_replace for vim Search & replace cheatsheet | |||
|
feedback
|
tail? Quit tail, and rungrep java < error_log. – new123456 Sep 29 '11 at 11:13grep -options "searchterm" [file]– Bobby Sep 29 '11 at 11:22grep java error_logworks too – Carlos Campderrós Sep 29 '11 at 11:22