Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 SMI; site creare.uucp Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!dartvax!creare!gda From: gda@creare.uucp (gda) Newsgroups: net.unix-wizards Subject: HELP - Background jobs in csh Message-ID: <348@creare.uucp> Date: Fri, 5-Apr-85 08:47:24 EST Article-I.D.: creare.348 Posted: Fri Apr 5 08:47:24 1985 Date-Received: Sun, 7-Apr-85 03:50:10 EST Organization: Creare R & D, Great Hollow Rd,, Hanover, N. H. 03755 Lines: 13 Can anyone suggest a way for a program to know if it's running in background ? We have a program that is partly interactive, but when run in background we want it to skip the interactive part. We tried checking if STDIN was a tty, but that didn't help. We think it could call up "ps" and look for itself, but there must be an easier way... Thanks for your help (in advance). Gray Abbott Creare Inc. {...dartvax!creare!gda}