New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@paulavery/task-runner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paulavery/task-runner

Run shell-scripts via a web-interface

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Task Runner

A very simple webapp which should act as a cron replacement with a web-interface. You may define tasks in a tasks.json file:

[{
	"name": "A Task",
	"script": "/usr/bin/cat",
	"args": [ "/etc/fstab" ]
}, {
	"name": "Another Task",
	"script": "/usr/bin/date"
}]

You can then run any of these tasks through a web UI: Screenshot

Setup

To get started, simply install this package (npm install -g @paulavery/task-runner) and then start the application via task-runner.

You may set the following environment variables to configure the application:

  • TR_PORT: The port to run the application on. Defaults to 3000
  • TR_TASKFILE: The file from which to read the task definitions. Defaults to tasks.json in the current working directory.
  • TR_DATABASE: The sqlite database file to save information about previous task invocations to. Defaults to tasks.db in the current working directory.

TODO

  • Definable Intervals / Automatic running of tasks

FAQs

Package last updated on 10 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts