expect_popen(3) php man page | unix.com

Man Page: expect_popen

Operating Environment: php

Section: 3

EXPECT_POPEN(3) 							 1							   EXPECT_POPEN(3)

expect_popen - Execute command via Bourne shell, and open the PTY stream to the process

SYNOPSIS
resource expect_popen (string $command)
DESCRIPTION
Execute command via Bourne shell, and open the PTY stream to the process.
PARAMETERS
o $command - Command to execute.
RETURN VALUES
Returns an open PTY stream to the processes stdio, stdout, and stderr. On failure this function returns FALSE.
EXAMPLES
Example #1 expect_popen(3) example <?php // Login to the PHP.net CVS repository: $stream = expect_popen ("cvs -d :pserver:anonymous@cvs.php.net:/repository login"); sleep (3); fwrite ($stream, "phpfi "); fclose ($stream); ?>
SEE ALSO
popen(3). PHP Documentation Group EXPECT_POPEN(3)
Related Man Pages
pclose(3) - ultrix
stream_get_contents(3) - php
ssh2_exec(3) - php
stream_socket_enable_crypto(3) - php
stream_socket_shutdown(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch