PYTHON pclose

is this article helpful?
|
Python replacement for PHP's pclose [ edit | history ]
p.close()

PHP pclose

PHP original manual for pclose [ show | php.net ]

pclose

(PHP 4, PHP 5)

pcloseCloses process file pointer

Description

int pclose ( resource $handle )

Closes a file pointer to a pipe opened by popen().

Parameters

handle

The file pointer must be valid, and must have been returned by a successful call to popen().

Return Values

Returns the termination status of the process that was run.

Examples

Example #1 pclose() example

<?php
$handle 
popen('/bin/ls''r');
pclose($handle);
?>

See Also

  • popen() - Opens process file pointer