Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
process[popen] - starts a system command and opens a pipe to or from it
Calling Sequence
popen(command, mode)
Parameters
command
-
command line to invoke to start the process
mode
one of READ or WRITE
Description
Important: The process package has been deprecated. Use the superseding package Threads instead.
The popen function starts the specified command, and connects a pipe to the command's standard input (WRITE) or standard output (READ). A file descriptor for the other end of the pipe is returned.
If the process was started in mode READ, the standard output of the process becomes available for reading on the returned descriptor. Any of the reading functions (for example, readline, readbytes, and fscanf) can be used.
If the process was started in mode WRITE, data written on the returned descriptor is piped to the standard input of the process. Any of the writing functions (for example, writeline, writebytes, and fprintf) can be used.
A pipe created by popen cannot be used by the block function.
The popen function is supported only on those platforms which provide operating system support for pipes and processes (for example, UNIX).
The command with(process,popen) allows the use of the abbreviated form of this command.
See Also
file_types, IO_errors, process/pclose, Threads
Download Help Document