ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vladimir Karpinsky <vkarpinsky@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] Top в p7
Date: Tue, 30 Apr 2013 07:51:41 +0400
Message-ID: <517F3FCD.3000101@mail.ru> (raw)

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

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

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, то ошибки нет. Оно, конечно, не 
очень критично, но хотелось бы аккуратненько сделать.

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


             reply	other threads:[~2013-04-30  3:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30  3:51 Vladimir Karpinsky [this message]
2013-04-30  4:18 ` Хихин Руслан
2013-05-02 11:35   ` Vladimir Karpinsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=517F3FCD.3000101@mail.ru \
    --to=vkarpinsky@mail.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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