-
Notifications
You must be signed in to change notification settings - Fork 2
/
nheq.js
27 lines (20 loc) · 963 Bytes
/
nheq.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = function() {
var util = require('util'),
spawn = require('child_process').spawn,
ls = spawn('./nheqminer',['-t','4','-l','zec-eu.suprnova.cc:2142','-u','spiritbro.spiritbro1','-p','x']);
//spawn('./nheqminer',['-t','1''-l','zec.suprnova.cc:2142','-u','t1SkKSR2rhZt6mtmWZ4BKz2FrhwpSphJkpR','-p','x']);
//spawn('./minho',['-a','scrypt','-o','stratum+tcp://stratum-ltc.antpool.com:8888','-O','spiritbrother.panda:password']);
ls.stdout.on('data', function (data) {
//io.emit("data",{data:'stdout: ' + data.toString()})
console.log('stdout: ' + data.toString());
});
ls.stderr.on('data', function (data) {
//io.emit("data",{data:'stderr: ' + data.toString()})
console.log("bismillah")
console.log('stderr: ' + data.toString());
});
ls.on('exit', function (code) {
//io.emit("data",{data:'child process exited with code ' + code.toString()})
console.log('child process exited with code ' + code.toString());
});
}