---
name: "runstat"
section: "1"
platform: "linux"
package: "cronutils"
version: "1.10-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/runstat"
---

# runstat(1)

collect statistics about execution of a process

## NAME

runstat - collect statistics about execution of a process

## SYNOPSYS

**runstat** \[ **-h** \]

**runstat** \[ **-d** \] \[ **-f** *pathname* \] *command* \[ *args* \]

## DESCRIPTION

**runstat** tries to execute a command in a subprocess, and upon termination of the subprocess collects some statistics about that subprocess, and writes them to a file.

These statistics include time of execution, exit status, and elapsed time to execute, as well as use of various OS resources.

## USAGE

- **-d**

  Debug mode; send log messages to standard error as well as to the system log.

- **-f** *pathname*

  Specifies the pathname of the file to save the statistics to.  The default is to create a file in /tmp/cronutils-$USER with the name of the command, and suffix ".stat".

- **-h**

  Prints some basic help.

## SEE ALSO

[**runalarm**(1)](/runalarm/1.md), [**runlock**(1)](/runlock/1.md), [**getrusage**(2)](/getrusage/2.md)

## AUTHOR

**runstat** was written by Jamie Wilkinson \<jaq@google.com\>.

## COPYRIGHT

This program is copyright (C) 2010 Google, Inc.

It is licensed under the Apache License, Version 2.0
