---
name: "Posix.system"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Posix.system"
---

# Posix.system(3kaya)

Run an external program

## NAME

Posix::system - Run an external program

## SYNOPSIS

**Void system(** *String cmd* **)**

## ARGUMENTS

**cmd** The command to run

## DESCRIPTION

Run an external program. If the external program exits with a non-zero status, a **Posix.NonZeroExit (3kaya)** exception will be thrown.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**Posix.call (3kaya)**

**Posix.fork (3kaya)**

**Posix.popen (3kaya)**
