Skip to content

Instantly share code, notes, and snippets.

View killtw's full-sized avatar

Karl Li killtw

View GitHub Profile
@dansimau
dansimau / bash-processor.sh
Created February 24, 2011 16:31
A bash script/template for adding multi-processing to something (ie. another script)
#!/bin/bash
#
# A bash script/template for adding multi-processing to "stuff".
#
# Designed to be used for syncing files though. Takes "strings of stuff" (eg.
# filenames) into a queue, flattens duplicates, then spawns a worker after a
# few seconds that calls the processing script with the "stuff" as params.
#
# [email protected]
# 2011-02-24