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