Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

FIX: multiple process exec() api #158

Open
anak10thn opened this issue Mar 2, 2015 · 0 comments
Open

FIX: multiple process exec() api #158

anak10thn opened this issue Mar 2, 2015 · 0 comments

Comments

@anak10thn
Copy link
Owner

module

var sys = ign.sys();

methods

var command = sys.exec(option);
/*output streaming*/
command.out.connect(function(out,error){
console.log(out);
console.log(error);
}
/*kill process*/
command.kill()

option

Properties Value
option string

example

var sys = ign.sys();

var a = sys.exec("ping google.com");
var b = sys.exec("ping facebook.com");

a.out.connect(function(out,err){
 console.log("A Process :"+out)
})

b.out.connect(function(out,err){
 console.log("B Process :"+out)
})

function killA(){
 a.kill();
}

function killB(){
 b.kill();
}

example 2
screen shot 2015-03-04 at 3 09 00 am

@anak10thn anak10thn added this to the 1.1.7 milestone Mar 2, 2015
anak10thn added a commit that referenced this issue Mar 2, 2015
anak10thn added a commit that referenced this issue Mar 3, 2015
anak10thn added a commit that referenced this issue Mar 3, 2015
@anak10thn anak10thn reopened this Mar 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant