Commit | Line | Data |
---|---|---|
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 | ||
10 | trap "" 1 15 | |
11 | if test -t 2>&1 ; then | |
12 | echo "Sending output to 'nohup.out'" | |
13 | exec nice -5 $* >>nohup.out 2>&1 | |
14 | else | |
15 | exec nice -5 $* 2>&1 | |
16 | fi |