From: roywoco on 15 Apr 2010 10:20 I would like to capture the output of vmstat every 10 min into a file. Can anyone know how I can do it? Thanks Roy -- View this message in context: http://old.nabble.com/Repeat-a-command-in-background-tp28255878p28255878.html Sent from the linux-kernel mailing list archive at Nabble.com. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Daniel Mack on 15 Apr 2010 10:50 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: [cleanup] mm: introduce free_pages_prepare Next: memcg: update documentation v8 |