About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/popen.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 popen Context: slangrtl

Synopsis

Open a process

Syntax

File_Type popen (String_Type cmd, String_Type mode)

Description

The popen function executes a process specified by cmd and opens a unidirectional pipe to the newly created process. The mode indicates whether or not the pipe is open for reading or writing. Specifically, if mode is "r", then the pipe is opened for reading, or if mode is "w", then the pipe will be open for writing.

Upon success, a File_Type pointer will be returned, otherwise the function failed and NULL will be returned.

This function is not available on all systems.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.