From: Daniel Mack <daniel@caiaq.de>
To: roywoco <roy.chan@travelex.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Repeat a command in background
Date: Thu, 15 Apr 2010 16:48:00 +0200 [thread overview]
Message-ID: <20100415144800.GW30801@buzzloop.caiaq.de> (raw)
In-Reply-To: <28255878.post@talk.nabble.com>
On Thu, Apr 15, 2010 at 07:16:03AM -0700, roywoco wrote:
> I would like to capture the output of vmstat every 10 min into a file. Can
> anyone know how I can do it?
Very wrong list for such questions, dude. Nevermind ...
#!/bin/sh
file=/tmp/file
while [ true ]; do
cat /proc/vmstat >> $file
sleep 600
done
prev parent reply other threads:[~2010-04-15 14:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-15 14:16 roywoco
2010-04-15 14:48 ` Daniel Mack [this message]
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=20100415144800.GW30801@buzzloop.caiaq.de \
--to=daniel@caiaq.de \
--cc=linux-kernel@vger.kernel.org \
--cc=roy.chan@travelex.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®