use bash builtins instead of forking, add `-l` for logging
Merge pull request #1 from bahamas10/dave-patch-1

use bash builtins instead of forking, add `-l` for logging