2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00
cheat.sheets/sheets/tsp

24 lines
364 B
Plaintext
Raw Normal View History

2020-12-15 06:52:39 +00:00
# tsp
# task-spooler - A simple unix batch system to run commands in a queue
2020-12-14 16:12:31 +00:00
2020-12-14 13:46:39 +00:00
# Run a job in the background
tsp pg_dump mydb
# Run complex job in the background
tsp sh -c "pg_dump mydb > file.log"
# Show list of jobs
tsp -l
# Print path to logfile
tsp -o [job ID]
# Print logfile
tsp -c [job ID]
# Clear job list
tsp -C
2020-12-14 13:50:18 +00:00
# Kill a job
2020-12-14 13:46:39 +00:00
kill $(tsp -p [job ID])