ksh weird files

Shankar Unni shankar at hpclscu.HP.COM
Thu Jun 9 07:41:27 AEST 1988


>................................................................ But I've some
>other questions. How do you get a sh script running at login (the password
>file entry should be an executable I thought). When login or getty or whoever
>goes to exec the sh script, how does it know which command interpreter to use
>(I don't think it knows of #! lines, in fact it doesn't even know the c.i.
>issue) ?

No, you *can* specify shell scripts as login shells. The code to handle non-
executables is in exec(2), and it works just fine whether it's called from the
shell or from getty. It's usually a good idea to put a #! line at the top,
just to be sure what shell gets run. 

--
Shankar Unni.



More information about the Comp.unix.wizards mailing list