Skip to content

Commit

Permalink
1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Mar 17, 2018
1 parent c7d90f8 commit e6acb35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Simple PID based locking for cronjobs, UNIX scripts or python programs

* Install with pip

```bash
```
sudo pip install -U pidlock
```

* Use it from inside python script

```python
```
import time
from pidlock import PIDLock
Expand All @@ -33,7 +33,7 @@ with locker.lock('sleepy_script'):

* Use it as commandline/cron job

```bash
```
# To display help menu
pidlock -h # Or pidlock --help
Expand All @@ -49,11 +49,11 @@ pidlock --name sleepy_script --command 'sleep 10'

* You can pass PID file location and verbosity as arguments

```python
```
# Python Usage
locker = PIDLock(lockdir='~/.pidlock', verbose=True)
```
```bash
```
# Commandline usage
pidlock -n sleepy_script -c 'sleep 10' -l ~/.pidlock -v
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from codecs import open
from os import path

VERSION = 'v1.1.4'
VERSION = 'v1.1.5'

here = path.abspath(path.dirname(__file__))

Expand Down

0 comments on commit e6acb35

Please sign in to comment.