Darwin Help

Back to Index

CallSystem

Function CallSystem


Calling Sequence  CallSystem(cmd)
Parameters
NameTypeDescription

cmd string 
Return Type  integer
Synopsis The CallSystem command passes the argument cmd to the underlying operating system for execution. It returns the integer value returned by the operating system.
 

If the results of the execution are to be returned as a string in Darwin, then the command TimedCallSystem will do this without the need of an intermediate file. Also the command OpenPipe allows the direct reading of the output of a system command

Examples
> CallSystem('date');
Fri Apr 25 12:39:18 MEST 2003
0
See also FileStat,   OpenPipe,   SystemCommand,   TimedCallSystem