W3cubDocs

/Haxe Python

Popen

package python.lib.subprocess

@:pythonImport("subprocess","Popen") Available on python

Constructor

@:value({ creationflags : 0, startupinfo : null, universal_newlines : false, env : null, cwd : null, shell : false, close_fds : false, preexec_fn : null, stderr : null, stdout : null, stdin : null, executable : null, bufsize : 0 }) new (args:Array<String>, bufsize:Int = 0, ?executable:String, ?stdin:Int, ?stdout:Int, ?stderr:Int, ?preexec_fn:Void ‑> Void, close_fds:Bool = false, shell:Bool = false, ?cwd:String, ?env:Dict<String, String>, universal_newlines:Bool = false, ?startupinfo:StartupInfo, creationflags:Int = 0)

Variables

pid:Int

returncode:Int

stderr:FileIO

stdin:FileIO

stdout:FileIO

Methods

@:value({ timeout : null, input : null }) communicate (?input:Bytes, ?timeout:Int):Tuple2<Bytes, Bytes>

kill ():Void

poll ():Null<Int>

terminate ():Void

wait (?timeout:Int):Null<Int>

Static methods

static inline create (args:EitherType<String, Array<String>>, o:PopenOptions):Popen

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/python/lib/subprocess/Popen.html