Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!rutgers!cmcl2!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.unix.xenix.sco Subject: Re: Problems with guest login script Message-ID: <27186F89.40D6@marob.masa.com> Date: 14 Oct 90 14:00:40 GMT Organization: ESCC, New York City Lines: 20 hb@vpnet.chi.il.us (hank barta) writes: >> # .profile >> exec new_user.sh >Since the script is not directly executable but must be interpreted >by a shell, is there some way the user can get back to the shell itself? No. The shell does this by doing an exec{l,v} without first forking to create a new child process. This overlays the parent process (be it a shell or any other program) with the new process, rather than creating a subprocess. The shell probably invokes another sh and passes it `-c new_user.sh', although it might avoid the exec{l,v} by special-casing scripts and internally simulating the above action. -- Dave Hammond daveh@marob.masa.com uunet!masa.com!marob!daveh