https://github.com/artyom/shellqueue
A basic tool for running shell command in fifo queue
https://github.com/artyom/shellqueue
Last synced: 21 days ago
JSON representation
A basic tool for running shell command in fifo queue
- Host: GitHub
- URL: https://github.com/artyom/shellqueue
- Owner: artyom
- Created: 2009-04-04T16:56:04.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2013-06-27T13:06:23.000Z (almost 13 years ago)
- Last Synced: 2025-12-02T21:53:16.552Z (7 months ago)
- Language: Shell
- Homepage:
- Size: 104 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.mkd
Awesome Lists containing this project
README
shellqueue
==========
*shellqueue* is a basic tool for running shell commands in fifo queue.
Its main goal is to provide a simple interface for running non-interactive
commands in fifo queue without writing a separate shellscript. Just fire a
command and it will run in its turn.
Please note, only the `$PWD` variable is preserved from environment: each task
will try to change directory to that it was added from.
Usage: shellqueue [options]
--list show list of queued commands
--add add command to queue from stdin
--execute
process queue in fifo mode
Spool directory is `~/.queue_spool` by default, feel free to change it in
source. It is also should be safe to add its processing form (`shellqueue
--execute`) as a cron job, i.e. running every 10 minutes or so. Lockfiles are
used while processing spool to avoid race condition (be sure to have
`lockfile-progs` installed).
Bugs and suggestions
--------------------
Please feel free to send me any bugreports/patches; if you want some features
-- just clone and implement them. Actually, I'm okay with this tool as it is
and I don't intend to extend its functionality: it was originally written for
sorting out my downloads and similar junk without running multiple `mv` or
`cp` commands in parallel (precious disk io).
Artyom Pervukhin