pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Process

Process.system()


Method system

int system(string command, void|Stdio.Stream stdin, void|Stdio.Stream stdout, void|Stdio.Stream stderr)

Description

Executes command as a shell statement ("/bin/sh -c  command " for Unix, "cmd /c command " for Windows), waits until it has finished and returns its return value.

Parameter stdin
Parameter stdout
Parameter stderr

Stream objects to use as standard input, standard output and standard error, respectively, for the created process. The corresponding streams for this process are used for those that are left out.

See also

spawn , popen

Module reference for Pike v7.8 release 116, 2008-12-31