Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!decuac!avolio From: avolio@decuac.UUCP Newsgroups: net.unix Subject: Re: Request for help on background shell processing Message-ID: <1059@decuac.DEC.COM> Date: Wed, 17-Sep-86 12:09:01 EDT Article-I.D.: decuac.1059 Posted: Wed Sep 17 12:09:01 1986 Date-Received: Wed, 17-Sep-86 23:59:09 EDT References: <2714@rsch.WISC.EDU> Distribution: na Organization: ULTRIX Applications Center, MD Lines: 22 A background job executed from a login shell is related to the invoker's terminal. A shell script similarly. A background job executed from a shell script is not. Example: Put the line tty > jnk in cmd. When you run cmd or master it works fine. From bgmaster it says "not a tty" Now, "rm" has a check in it to see if you are a terminal (isatty()). If not, it runs as if the -f flag was specified. -- Fred @ DEC Ultrix Applications Center INET: avolio@decuac.dec.com * Fight the Fight * UUCP: {decvax,seismo,cbosgd}!decuac!avolio * Rescue the Unborn *