process daemonizer client-server library
Project description
=========================
pdem - Process Daemonizer
=========================
Purpose
-------
A tool, consists of server and client, used to run long processes, collect information from the processes, such as
progress and time elapsed and astimated.
Client could command to run process, kill process, get info about live or already dead process.
Install
-------
::
# pip3 install pdem
Usage of library
----------------
Write config file to ~/.config/pdem.conf
::
$ pdem-server writeConf --conf ~/.config/pdem.conf --daemonize Yes --logLevel WARNING --daemonLogFile /tmp/pdem.log
Start server with default params, or by params, written to ~/.config/pdem.conf:
::
$ pdem-server start
Status of server:
::
$ pdem-server status
Stop server:
::
$ pdem-server stop
Display help:
::
$ pdem-server help
Display help on
Run as client, send command to server, display result and exit:
display list of running processes:
::
$ pdem-server do proclist
display list of running and dead processes:
::
$ pdem-server do proclist showdead
run process by a server (bash0 would became it's identifier, "name"):
::
$ pdem-server runprocess bash0 bash_interpreter local /bin/bash
kill running process by a server:
::
$ pdem-server kill bash0
* 2016-11-18 mihanentalpo <mihanentalpo@yandex.ru> 0.1.5
- Fixed bugs in package
* 2016-10-30 mihanentalpo <mihanentalpo@yandex.ru> 0.1.4
- Finished python3 implementation, and uploaded pypi package "pdem"
* Sun Sep 08 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.12
- AFixed bug - when some of process' vars contain newline symbol it lead to a broken output. Now, '\n' converted to '\\n'.
* Mon May 27 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.11
- added functionality to see old dead processes, by send "proclist showdead", and remove them by send "burndead"
* Sat May 25 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.10
- fixed bug with stack opverflow in case of lots of incoming process'es data. But now it will consume more CPU.
* Thu Feb 28 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.8
- added daemonization config option
* Wed Feb 27 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.5
- added [PDEM[var:x=y]PDEM]
* Tue Feb 26 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.4
- working release
* Wed Feb 20 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.3
- First alpha release
pdem - Process Daemonizer
=========================
Purpose
-------
A tool, consists of server and client, used to run long processes, collect information from the processes, such as
progress and time elapsed and astimated.
Client could command to run process, kill process, get info about live or already dead process.
Install
-------
::
# pip3 install pdem
Usage of library
----------------
Write config file to ~/.config/pdem.conf
::
$ pdem-server writeConf --conf ~/.config/pdem.conf --daemonize Yes --logLevel WARNING --daemonLogFile /tmp/pdem.log
Start server with default params, or by params, written to ~/.config/pdem.conf:
::
$ pdem-server start
Status of server:
::
$ pdem-server status
Stop server:
::
$ pdem-server stop
Display help:
::
$ pdem-server help
Display help on
Run as client, send command to server, display result and exit:
display list of running processes:
::
$ pdem-server do proclist
display list of running and dead processes:
::
$ pdem-server do proclist showdead
run process by a server (bash0 would became it's identifier, "name"):
::
$ pdem-server runprocess bash0 bash_interpreter local /bin/bash
kill running process by a server:
::
$ pdem-server kill bash0
* 2016-11-18 mihanentalpo <mihanentalpo@yandex.ru> 0.1.5
- Fixed bugs in package
* 2016-10-30 mihanentalpo <mihanentalpo@yandex.ru> 0.1.4
- Finished python3 implementation, and uploaded pypi package "pdem"
* Sun Sep 08 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.12
- AFixed bug - when some of process' vars contain newline symbol it lead to a broken output. Now, '\n' converted to '\\n'.
* Mon May 27 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.11
- added functionality to see old dead processes, by send "proclist showdead", and remove them by send "burndead"
* Sat May 25 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.10
- fixed bug with stack opverflow in case of lots of incoming process'es data. But now it will consume more CPU.
* Thu Feb 28 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.8
- added daemonization config option
* Wed Feb 27 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.5
- added [PDEM[var:x=y]PDEM]
* Tue Feb 26 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.4
- working release
* Wed Feb 20 2013 mihanentalpo <mihanentalpo@yandex.ru> 0.0.3
- First alpha release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pdem-0.1.5.tar.gz
(17.1 kB
view details)
Built Distribution
pdem-0.1.5-py3-none-any.whl
(18.9 kB
view details)
File details
Details for the file pdem-0.1.5.tar.gz
.
File metadata
- Download URL: pdem-0.1.5.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0632feefb6de39d102e64bd104d2fb97a52308ff560be8724ec7e3f9c069ee42 |
|
MD5 | 0fde4fb746b8e4f01ed6562056040728 |
|
BLAKE2b-256 | e4f8a12ce40dfa58dbc3b21bbd43c019a2f49eecf14c0a2dc8fc3ff5f815d308 |
File details
Details for the file pdem-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: pdem-0.1.5-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf82c063fe9142388d6e82f3da2374f320b6e7398454e823d464ebafc2c4e8a |
|
MD5 | 391fcc34abc59d1fa33203d31d2c5466 |
|
BLAKE2b-256 | 7c271315a50cb3efa38e943c470e7def525e93eab5b79d964089af6b297f6986 |