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

FIX: multiple process exec() api #158

@anak10thn

Description

@anak10thn

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions