Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
command runner for issuing shell commands from django views
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
command_runner cleanup
.gitignore gitignore added
LICENSE Initial commit
MANIFEST.in
README
requirements.txt requirements update
setup.py

README

Introduction
==============

This is usable when you need issue commands to a shell from django view.
You can use variety of mechanisms. Everyone has its pros and cons.
If you use os.system(command) you have to run all the stuff under root privileges.
Along this you are not able to command a remote machine.
On the other way if you issue a command over ssh channel, you need a plain-text password.
Storing this password can be a security issue. Maybe there is even better mechanism.
Comments are welcomed.

Installation
==============

1. Clone the read-only repo

     git clone git://github.com/vencax/django-command-runner.git

2. Install the dependencies via PIP.

     pip install -r requirements.txt
		
3. Optionaly add following configs into django settings

	RUN_COMMAND_FACILITY = command issuing mechanism (default paramiko)
	COMMAND_TARGET_SERVER = address of server where commands are to be executed (default localhost)
	COMMAND_TARGET_USER = user for target machine connection (default root)
	
	NOTE: you might need another libraries: paramiko, lockfile if you use paramiko based mechanism.
				
4. You are done


Something went wrong with that request. Please try again.