Path: utzoo!censor!teecs!belkin From: belkin@teecs.UUCP (Hershel Belkin) Newsgroups: comp.unix.wizards Subject: Re: Can my alter-ego use "at"? Message-ID: <960006@teecs.UUCP> Date: 3 Jul 90 20:46:22 GMT References: <960005@teecs.UUCP> Organization: Litton Systems, Toronto ONT Lines: 25 Thanks to all who responded. A few responses indicated that they could do a newgrp to the new group, then run "at" and then newgrp back, and have the "at" job run under the alternate environment. This does not work on my system -- the newgrp always takes the uid/gid from the passwd entry for the user. However, another proposed solution _does_ work... newgrp group << \! ...script to be executed under alternate gid ... ! The above can be put in a script file and run using "at". (I had tried re-direction of stdin, but of course simple re-direction from a file belongs to the current shell, so this doesn't work! The above solution seems so obvious now :-) -- +-----------------------------------------------+-------------------------+ | Hershel Belkin hp9000/825(HP-UX)| UUCP: teecs!belkin | | Test Equipment Engineering Computing Services | Phone: 416 246-2647 | | Litton Systems Canada Limited (Toronto) | FAX: 416 246-5233 | +-----------------------------------------------+-------------------------+