2019-09-25 00:57:10 -05:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# fork
|
|
|
|
# Fork a task to bg without terminal spew
|
|
|
|
# Copyright (C) 2019 Vintage Salt <rehashedsalt@cock.li>
|
|
|
|
#
|
|
|
|
# Distributed under terms of the MIT license.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-10-25 00:36:43 -05:00
|
|
|
if [ -z "$*" ]; then
|
2019-09-27 00:00:24 -05:00
|
|
|
printf "fork: requires argument\\n"
|
|
|
|
exit 1
|
2019-09-25 00:57:10 -05:00
|
|
|
fi
|
|
|
|
(
|
|
|
|
exec 0>/dev/null 1>&0 2>&0 "$@"
|
|
|
|
)&
|
|
|
|
exit 0
|