Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ucsd!sdcc6!sdcc10!bruno From: bruno@sdcc10.ucsd.EDU (Bruce W. Mohler) Newsgroups: comp.unix.questions Subject: Re: newgrp in shell programs Summary: Thanks for the answer! Keywords: newgrp Bourne shell Message-ID: <127@sdcc10.ucsd.EDU> Date: 22 Jul 89 04:01:55 GMT References: <124@sdcc10.ucsd.EDU> Organization: Pacific*Bell, San Diego, CA Lines: 37 In article <124@sdcc10.ucsd.EDU>, bruno@sdcc10.ucsd.EDU (Bruce W. Mohler) writes: > Is it possible to do a newgrp near the beginning of > a shell program (especially one that has been started > by cron)? ... > > I understand that newgrp creates a new shell process, > but knowing this has not helped me to figure out whether > what I want to do is possible... > > ... > > All suggestions and directions are appreciated, in advance!!!! Thanks to Ihor Kinal and Paul Hite for providing me 2 different answers to my problem. The answer that best solves my problem is --> From: ijk@cbnewsh.ATT.COM (ihor.j.kinal) --> --> Here's one thing that comes to mind [I've tried it and it does work]" --> --> newgrp NEW_GROUP < --> shell script goes here --> --> ! --> --> -------------------- --> Of course, when you're done, you're logged off the machine --> Thanks again! -- Bruce W. Mohler Systems Programmer (aka Staff Analyst) bruno@sdcc10.ucsd.edu voice: 619/586-2218