ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Top в p7
@ 2013-04-30  3:51 Vladimir Karpinsky
  2013-04-30  4:18 ` Хихин Руслан
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Karpinsky @ 2013-04-30  3:51 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Здравствуйте!

Много лет использую в скрипте такую строку:

top -b  -n1 | head -6

И всё было хорошо до перехода на p7. Теперь вывод заканчивается ошибкой:

top - 07:41:48 up 59 days, 11:55,  2 users,  load average: 0,09, 0,13, 0,10
Tasks:  73 total,   1 running,  72 sleeping,   0 stopped,   0 zombie
%CPU(s):  0,5 us,  2,9 sy,  1,3 ni, 93,9 id,  1,4 wa,  0,0 hi,  0,0 si,  0,0 st
KiB Mem:    187276 total,   179812 used,     7464 free,    82820 buffers
KiB Swap:   184712 total,    16200 used,   168512 free,    63252 cached

top: write error
^^^^^^^^^^^^^^^^

Я пока не могу понять, кто эту ошибку выдаёт top или head --- если сделать: 
top -b -n1 > file, а потом head -6 file, то ошибки нет. Оно, конечно, не 
очень критично, но хотелось бы аккуратненько сделать.

-- 
	С уважением,
		Владимир.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-02 11:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-30  3:51 [Comm] Top в p7 Vladimir Karpinsky
2013-04-30  4:18 ` Хихин Руслан
2013-05-02 11:35   ` Vladimir Karpinsky

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git