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) 10/22/88 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 17