Skip to content
A light-weight library for easy interaction between Python and GNU screen.
Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyscreen Put code in separate directory Dec 1, 2015
.gitignore Initial commit Nov 30, 2015
LICENSE.txt Added some stuff for a pypi release Dec 1, 2015
README.md Added installation to readme Dec 1, 2015
setup.cfg Added some stuff for a pypi release Dec 1, 2015
setup.py Fixed setup.py Dec 1, 2015

README.md

pyscreen

A light-weight library for easy interaction between Python and GNU screen.

This library allows you create, find and kill screen sessions programmatically from Python, as well as send (string) commands to these sessions. You can use this to start other software inside a screen session from a Python script, like this:

import pyscreen

#Start a new session and give it something to do    
session = pyscreen.ScreenSession('myName')
session.send_command('echo hello')

#Kill a screen session with a particular name
session = pyscreen.get_session_with_name('testSession')
session.kill()

#Print all the id of all sessions
for session in pyscreen.get_all_sessions():
    print(session.id)

Installation

Either git clone this directory, or run

pip install pyscreen
You can’t perform that action at this time.