Overview

Namespaces

  • Webmozart
    • Console
      • Adapter
      • Api
        • Application
        • Args
          • Format
        • Command
        • Config
        • Event
        • Formatter
        • IO
        • Resolver
      • Args
      • Config
      • Formatter
      • Handler
        • Help
      • IO
        • InputStream
        • OutputStream
      • Process
      • Resolver
      • UI
        • Alignment
        • Component
        • Help
        • Layout
        • Style
      • Util

Classes

  • ProcessLauncher
  • Overview
  • Namespace
  • Class

Class ProcessLauncher

Launches an interactive process in the foreground.

This class is used to execute "man" and "less".

Namespace: Webmozart\Console\Process
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at Process/ProcessLauncher.php
Methods summary
public boolean
# isSupported( )

Returns whether the launcher is supported on the current system.

Returns whether the launcher is supported on the current system.

Returns

boolean
Whether the launcher is supported on the current system.
public boolean
# isRunning( )

Returns whether the launcher is currently running.

Returns whether the launcher is currently running.

Returns

boolean
Whether the launcher is running.
public
# setCheckInterval( float $checkInterval )

Returns the interval used to check whether the process is still alive.

Returns the interval used to check whether the process is still alive.

By default, the interval is 1 second.

Parameters

$checkInterval
The check interval.
public integer
# launchProcess( string $command, array $arguments = array(), boolean $killable = true )

Launches a process in the foreground.

Launches a process in the foreground.

Parameters

$command
The command to execute.
$arguments

Arguments to be quoted and inserted into the command. Each key "key" in the array should correspond to a placeholder "%key%" in the command.

$killable
Whether the process can be killed by the user.

Returns

integer
The exit status of the process.
Webmozart Console API API documentation generated by ApiGen