https://github.com/vaeth/starter
POSIX shell script and function to schedule commands
https://github.com/vaeth/starter
posix schedule-commands scheduler shell
Last synced: about 1 year ago
JSON representation
POSIX shell script and function to schedule commands
- Host: GitHub
- URL: https://github.com/vaeth/starter
- Owner: vaeth
- Created: 2012-01-30T16:58:10.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2021-06-13T11:05:16.000Z (almost 5 years ago)
- Last Synced: 2025-01-31T17:08:43.094Z (over 1 year ago)
- Topics: posix, schedule-commands, scheduler, shell
- Language: Shell
- Homepage: http://www.mathematik.uni-wuerzburg.de/~vaeth/download/index.html#starter
- Size: 24.4 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# starter
POSIX shell script and function to schedule commands
(C) Martin Väth (martin at mvath.de).
This project is under the BSD license.
## Warning
This project is practically no longer maintained.
Unless you have a special reason, use instead the successor project
https://github.com/vaeth/schedule
## Description
This script can be used to schedule commands in a multitasking
and multiuser environment.
Commands started with this script will wait with the execution
until all commands started earlier with this script
(possibly by a different user) have been executed.
You can also have several of such command queues or add a command
to a queue even if you start it immediately.
## Usage
To get help about the usage, call
`starter -h`
There is also a `starter_trap` function available for execution of
commands within your current shell. To obtain this function use either
```eval `starter_trap` ```
or
`. starter_trap`
in your current shell or put the following into your shell startup files:
```
starter_trap() {
if starter_trap=`starter_trap 2>/dev/null`
then eval "$starter_trap"
else echo "starter_trap not found" >&2
return 1
fi
starter_trap ${1+"$@"}
}
```
Information about the `starter_trap` function can then be obtained with
`starter_trap -h`
## Installation
For installation, copy the content of `bin/` in your `$PATH`.
You also need `push.sh` from https://github.com/vaeth/push in your `$PATH`.
If you want that the hard status line is set, also the `title` script from
https://github.com/vaeth/runtitle (version 2.3 or newer) is required in your
`$PATH`.
To obtain support for __zsh completion__, you can copy the content of `zsh/`
to a directory of your zsh's `$fpath`.
For Gentoo, there is an ebuild in the mv overlay (available over layman).