1.0.4 • Published 9 years ago

textcmd v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

textcmd.js

textcmd.js is a tool spawned from a post on Hackathon Hackers, where the OP requested a tool to text you when a command of yours has finished. This tool aims to provide such functionality, as well as the ability to check any errors, from the comfort of your phone.

Installation

In order to install textcmd.js, run npm install -g textcmd.

Setup

In order to set up the config required, create the file $HOME/textcmd.json with the following structure:

{
	"default": {
		"TWILIO_ACCOUNT_SID": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
		"TWILIO_AUTH_TOKEN":  "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
		"TWILIO_NUMBER_TO":   "+XXXXXXXXXXXX",
		"TWILIO_NUMBER_FROM": "+XXXXXXXXXXXX"
		"SERVER_URL": "http://url_of_server:port"
	}
}

Then run textcmd <command>.

Functionality

  1. Provide wrapper script to execute commands, and check the result
  2. If the result was success, provide a text in the format:
Success: 'make ...' run at 22:29 27 Jan suceeded.

Please see http://textcmd.me/DZfz5naMtFUlOL3YBotMgx2BQ for more details.
  1. If the result is an error, provide a text in the format, i.e.:
Error: 'make ...' run at 22:29 27 Jan failed with error code 2.

Please see http://textcmd.me/DZfz5naMtFUlOL3YBotMgx2BQ for more details.

Potential Extensions

  • Reply to re-run
  • Reply to run a different command