File:  [Research Unix] / researchv10no / cmd / nohup.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

trap "" 1 15
X=""
if [ -t 1 ]
then	X=1
fi
if [ -t 2 ]
then	X=${X}2
fi

case "$X" in

12)	echo "nohup: sending output to 'nohup.out'"
	exec nice -5 "$@" >>nohup.out 2>&1 ;;

2)	echo "nohup: sending std error to 'nohup.out'" 1>&2
	exec nice -5 "$@" 2>>nohup.out ;;

1)	echo "nohup: sending output to 'nohup.out'"
	exec nice -5 "$@" >>nohup.out ;;

"")	exec nice -5 "$@" ;;

esac

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.