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

# Posix.popen(3kaya)

Open a pipe to a command.

## NAME

Posix::popen - Open a pipe to a command.

## SYNOPSIS

**File popen(** *String cmd, FileMode mode* **)**

## ARGUMENTS

**cmd** The command to run

**mode** Whether to open **Read**  (get command's output), or **Write**  (send input to the command)

## DESCRIPTION

Open a pipe to a command.

## 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.pclose (3kaya)**

**Posix.system (3kaya)**
