Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjarkk/tasks-queue-simple
https://github.com/mjarkk/tasks-queue-simple
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mjarkk/tasks-queue-simple
- Owner: mjarkk
- Created: 2020-05-14T13:54:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-14T13:55:07.000Z (over 4 years ago)
- Last Synced: 2024-04-15T10:06:38.600Z (7 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run command in a queue file
```sh
./tasks-queue-simple /some/absolute/path/to/queue/file.json
```## Contents of the json queue file
```json
[
{
"user": "userid string here",
"cmd": "#!/bin/bash\necho \"Hello world!\""
}
...
]
```## Build the program
```sh
go build
```## Test
Change the abstract paths in [test/queue.json](test/queue.json) to your paths
```sh
go build
cd test
go build
cd ..
./tasks-queue-simple `pwd`/test/queue.json
``