Hi all
I have the following questions
1/ do you know how to interrupt the console to capture the message when the system is in booting
2/ I use "top" to monitor the process to output the file. but the file is empty. Do you know why?
Thank you
adrian kok wrote:
Hi all
I have the following questions
1/ do you know how to interrupt the console to capture the message when the system is in booting
try shift+page up
Otherwise you can seem them once its booted up by running dmesg as root
2/ I use "top" to monitor the process to output the file. but the file is empty. Do you know why?
top uses curses to output stuff so its probably not the best thing to output stuff to files, although if you do 'top > /tmp/filename' it seems to work. Might be better to have a look at ps if you want to do this.
Hi tim
Thank you for your help
1/ shift+page up works
2/ For the top
- When top in procps version 3.2.0 the output file is empty?
- When top in procps version 2.0.17 The file is fine but the output is truncated eg: "/usr/sbin/htt" as follow Do you know how to have whole file eg: "/usr/sbin/httpd xxxxx"
Thank you again
4562 mysql 16 0 14564 3804 2452 S 0.0 0.1 0:36 0 /usr/libexec/ 4996 root 16 0 16284 2240 2140 S 0.0 0.1 2:04 0 /usr/bin/perl 5038 root 16 0 2652 1928 1800 S 0.0 0.0 0:00 0 sendmail: sm- 5077 root 21 5 20792 2348 2348 S N 0.0 0.1 0:00 0 /usr/bin/spam 5881 root 16 0 41676 15M 15596 S 0.0 0.7 2:50 0 /usr/sbin/htt 6166 postgres 16 0 1452 1168 1104 S 0.0 0.0 0:30 0 /usr/bin/post 6234 postgres 16 0 2780 1484 1472 S 0.0 0.0 0:03 0 postgres: sta
--- Tim Edwards tim@registriesltd.com.au wrote:
adrian kok wrote:
Hi all
I have the following questions
1/ do you know how to interrupt the console to
capture
the message when the system is in booting
try shift+page up
Otherwise you can seem them once its booted up by running dmesg as root
2/ I use "top" to monitor the process to output
the
file. but the file is empty. Do you know why?
top uses curses to output stuff so its probably not the best thing to output stuff to files, although if you do 'top > /tmp/filename' it seems to work. Might be better to have a look at ps if you want to do this.
-- Tim Edwards
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
adrian kok wrote:
Hi tim
Thank you for your help
1/ shift+page up works
2/ For the top
- When top in procps version 3.2.0
the output file is empty?
- When top in procps version 2.0.17
The file is fine but the output is truncated eg: "/usr/sbin/htt" as follow Do you know how to have whole file eg: "/usr/sbin/httpd xxxxx"
Thank you again
4562 mysql 16 0 14564 3804 2452 S 0.0 0.1 0:36 0 /usr/libexec/ 4996 root 16 0 16284 2240 2140 S 0.0 0.1 2:04 0 /usr/bin/perl 5038 root 16 0 2652 1928 1800 S 0.0 0.0 0:00 0 sendmail: sm- 5077 root 21 5 20792 2348 2348 S N 0.0 0.1 0:00 0 /usr/bin/spam 5881 root 16 0 41676 15M 15596 S 0.0 0.7 2:50 0 /usr/sbin/htt 6166 postgres 16 0 1452 1168 1104 S 0.0 0.0 0:30 0 /usr/bin/post 6234 postgres 16 0 2780 1484 1472 S 0.0 0.0 0:03 0 postgres: sta
Just use the ps command, eg. ps -efw. I don't think top is very good for trying to output stuff to a file.