GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    R. L. Dane :debian: :openbsd: (rl_dane@fosstodon.org)'s status on Friday, 14-Apr-2023 17:47:50 JSTR. L. Dane :debian: :openbsd:R. L. Dane :debian: :openbsd:
    in reply to
    • Benjamin Hollon

    @benjaminhollon

    Teaching mode, engage!

    top -bn1 |grep -A9999 "^ *PID " |awk '{foo+=$9} END {print foo}'
    top: Run 1 instance of top and send it to STDOUT instead of a fancy tty-aware screen
    grep: show me at least 9,999 lines after anything that matches this regexp, and the match itself
    awk: use foo as a variable to accumulate the values in field 9 (cpu usage), and print it out once EOF is reached
    output: 160.1

    ...

    In conversationFriday, 14-Apr-2023 17:47:50 JST from fosstodon.orgpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.