1
.TH run\-one 1 "9 Jan 2011" bikeshed "bikeshed"
3
run\-one \- run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg)
6
\fBrun\-one\fP COMMAND [ARGS]
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.
11
This is often useful with cronjobs, when you want no more than one copy running at a time.
16
$ run\-one rsync -azP $HOME $USER@example.com:/srv/backup
18
In another shell, while the first is still running:
20
$ run\-one rsync -azP $HOME $USER@example.com:/srv/backup
21
ERROR: Already running [17868]
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.
29
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.