Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site trwrba.UUCP Path: utzoo!decvax!ittatc!dcdwest!sdcsvax!sdcrdcf!trwrb!trwrba!ries From: ries@trwrba.UUCP (Marc A. Ries) Newsgroups: net.unix-wizards Subject: Summary: Eliminating PID# Message-ID: <1857@trwrba.UUCP> Date: Tue, 25-Feb-86 12:32:26 EST Article-I.D.: trwrba.1857 Posted: Tue Feb 25 12:32:26 1986 Date-Received: Thu, 27-Feb-86 03:45:41 EST Reply-To: ries@trwrba.UUCP (Marc A. Ries) Distribution: na Organization: TRW EDS, Redondo Beach, CA Lines: 40 Keywords: Thanks (You can stop now) [LE] Thanks for all your responses concerning eliminating the return of the Process ID number when a program is placed in background via "&" and *sh*. Basically, all the solutions work. I did end up changing the program code because the message I wanted was going out via "stderr" (and thus would be lost if you redirected it to /dev/null, etc.). Here's a quick summary of the responses: From: jwp@sdchem.UUCP #! /bin/csh -f (nice myprog &) From: wtm@bunker.UUCP Call this shell script "run_back". This script would just contain: myprog& Then in your .profile, just run "run_back" (NOTE: Do NOT run this in background). From: edler@cmcl2.UUCP sh -c 'command&'. From: sean@ukma.UUCP forkit myprog # <-- use a front-end "fork"ing program From: sdcrdcf!allegra!mp ... [if] using stderr, not just stdout. Try (checkmail 2>&1 &) 2>/dev/null From:ihnp4!oliveb!jerry ... if the program is always run in the background then it could place itself there. [i.e.:] if (fork()) exit(0);