remote-task
Task runner
Last updated 5 years ago by tristandavies .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install remote-task 
SYNC missed versions from official npm registry.

remote-task

Simple server for remotely running tasks and logging their output to a given file

Installation

npm install remote-task

or

npm install --save remote-task

Usage

Server:

var remoteTask = require('remote-task');

var server = remoteTask('tasks.log');

server.listen(3000);

Client:

var remoteTask = require('remote-task');

var remoteControl = remoteTask.remoteStream(3000, '127.0.0.1'); //IP address is optional, arguments are passed to net.connect()

remoteControl.write(['cd', '/tmp']);
remoteControl.write(['touch', 'helloworld']);
remoteControl.write({end: true});

remoteControl.on('data', function(result){
  console.log(result.status); //success, hopefully
});

Current Tags

  • 1.2.7                                ...           latest (5 years ago)

27 Versions

  • 1.2.7                                ...           5 years ago
  • 1.2.6                                ...           5 years ago
  • 1.2.5                                ...           5 years ago
  • 1.2.4                                ...           5 years ago
  • 1.2.3                                ...           5 years ago
  • 1.2.2                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.6.5                                ...           5 years ago
  • 0.6.4                                ...           5 years ago
  • 0.6.3                                ...           5 years ago
  • 0.6.2                                ...           5 years ago
  • 0.6.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 28
Last Day 0
Last Week 1
Last Month 0
Dependencies (7)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |