~ubuntu-branches/ubuntu/oneiric/bikeshed/oneiric

« back to all changes in this revision

Viewing changes to run-one.1

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2010-11-19 22:20:29 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101119222029-oap0j3d0v0pd3dph
Tags: 1.7-0ubuntu1
* COPYING: add GPL license, LP: #663292
* Makefile, run-one, run-one.1: add the run-one utility
* run-one, run-one.1: use flock, mention in documentation
* debian/control: util-linux needed for flock
* Makefile, what-provides.1, whatprovides => what-provides:
  provide a what-provides utility

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH run\-one 1 "9 Jan 2011" bikeshed "bikeshed"
 
2
.SH NAME
 
3
run\-one \- run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg)
 
4
 
 
5
.SH SYNOPSIS
 
6
\fBrun\-one\fP COMMAND [ARGS]
 
7
 
 
8
.SH DESCRIPTION
 
9
\fBrun\-one\fP is a wrapper script that runs no more than one unique instance of some command with a unique set of arguments.
 
10
 
 
11
This is often useful with cronjobs, when you want no more than one copy running at a time.
 
12
 
 
13
.SH EXAMPLE
 
14
In one shell:
 
15
 
 
16
 $ run\-one rsync -azP $HOME $USER@example.com:/srv/backup
 
17
 
 
18
In another shell, while the first is still running:
 
19
 
 
20
 $ run\-one rsync -azP $HOME $USER@example.com:/srv/backup
 
21
 ERROR: Already running [17868]
 
22
 
 
23
.SH SEE ALSO
 
24
\fBflock\fP(1)
 
25
 
 
26
.SH AUTHOR
 
27
This manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others).  Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
 
28
 
 
29
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.