Problems with guest login script
Dave Hammond
daveh at marob.masa.com
Mon Oct 15 00:00:40 AEST 1990
hb at 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 at marob.masa.com
uunet!masa.com!marob!daveh
More information about the Comp.unix.xenix.sco
mailing list