Skip to content

easy integration, execution and outputting of shellcommands +(line by line output instead of whole output at once)

License

Notifications You must be signed in to change notification settings

ezgoodnight/hubot-script-shellcmd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hubot-script-shellcmd

Easily list/Execute shellcommands from a specified folder, and logs to rsyslog whenever possible.

Commands:

  • Hubot shellcmd - list (bash)shell commands
  • Hubot shellcmd - performs bashshell command

Example

# install
cd <yourhubotdir>
npm install hubot-script-shellcmd
cp -R node_modules/hubot-script-shellcmd/bash .

# add shellcommands
echo -e "echo helloworld" > bash/handlers/helloworld
chmod 755 bash/handlers/helloworld

# run bot
(add 'hubot-script-shellcmd' to external-scripts.json)
bin/hubot

In hubot:

you> hubot shellcmd

hubot> Available commands:
hubot>   helloworld

you> hubot shellcmd helloworld 
hubot> helloworld

Why

Sometimes its easier to trigger bashscripts or do things in bash (git deployment, server mintenance thingies, remote stuff e.g.)

Configuration:

This plugin uses a bash-script as entry plugin for security reasons:

HUBOT_SHELLCMD="bash/handler" 

About

easy integration, execution and outputting of shellcommands +(line by line output instead of whole output at once)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 50.8%
  • Shell 49.2%