Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 711 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 711 Bytes

email-command

Run commands via email.

Notes

  • Requirement: Python (>= 2.7.3)
  • Rename config_example.py to config.py -- set variables respectively.
  • Use a dedicated email
    • It deletes all messages it opened
    • Some email providers like gmail still keep deleted messages depending on user setting
  • Run run.py or in background with nohup python run.py > /dev/null 2>&1 &
  • Must be a valid JSON format
  • One command per line
  • Use at your own risk!

Use the following email body format:

{"type": "terminal", "command": ["ls", "-la"]}
{"type": "terminal", "command": ["touch", "meow"]}

License

Licensed under the Apache License, Version 2.0. See: LICENSE for more info.