home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4037 comp.unix.sysv386:12693
- Path: sparky!uunet!cis.ohio-state.edu!rutgers!ub!galileo.cc.rochester.edu!ee.rochester.edu!moscom!jmp
- From: jmp@moscom.UUCP (Joe Palumbos)
- Newsgroups: comp.unix.programmer,comp.unix.sysv386
- Subject: Re: I/O of login shell
- Message-ID: <3849@moscom.UUCP>
- Date: 31 Jul 92 13:24:48 GMT
- References: <1992Jul29.220116.1634@wariat.org>
- Distribution: usa
- Organization: Moscom Corp., Pittsford, NY
- Lines: 32
- X-Newsreader: Tin 1.1 PL3
-
- erica@wariat.org (Lady of the BitMode) writes:
- : Hi.
- :
- : I'm running SVR4. First a very very brief to help along the way.
- : When a person logins into a unix system the system must first:
- : 1) spawn a getty from teriminal
- : 2) getty runs login
- : 3) then getty exec users specified shell, [...]
- : 4) user gets 3 basic file handles:
- : stdout 0, stdin 1, stderr 2.
- :
- : [.....]
- :
- : PS: I'm gonna go try the above. I know it's not going tobe a trivial task! :(
- :
- : Thankyou:
- :
- : Erica C. Ramsey
- :
-
- Lady Erica,
-
- This looks like it should work; but you have your stdin & stdout fd's
- mixed up. If you look in unistd.h, you'll see defines for these:
-
- #define STDIN_FILENO 0
- #define STDOUT_FILENO 1
- #define STDERR_FILENO 2
-
- Good luck.
- --
- Joe Palumbos jmp@moscom.com {rit,tropix,ur-valhalla}!moscom!jmp
-