less -> more
[unix-history] / usr / src / usr.bin / nohup / nohup.sh
#!/bin/sh -
#
# Copyright (c) 1988 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
# @(#)nohup.sh 5.1 (Berkeley) %G%
#
trap "" 1 15
if test -t 2>&1 ; then
echo "Sending output to 'nohup.out'"
exec nice -5 $* >>nohup.out 2>&1
else
exec nice -5 $* 2>&1
fi