home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.security
- Path: sparky!uunet!super!adamfox
- From: adamfox@b115.super.org (Adam Fox)
- Subject: Re: Redirecting SU's output
- Message-ID: <1992Nov16.220926.4718@super.org>
- Sender: adamfox@b115 (Adam Fox)
- Nntp-Posting-Host: b115
- Organization: Supercomputing Research Center, Bowie, MD USA
- References: <1ducbgINN65k@usenet.INS.CWRU.Edu>
- Date: Mon, 16 Nov 1992 22:09:26 GMT
- Lines: 20
-
- In article <1ducbgINN65k@usenet.INS.CWRU.Edu>, ck041@cleveland.Freenet.Edu (Kevin Currie) writes:
- |>
- |>
- |> Is is possible to redirect SU's screen output to a text file?
- |> I tried SU > textfile but that just gives me an empty file.
- |> Any ideas?
-
- What type of system are you running? The following works under SunOS 4.1.1
- (under csh/tcsh)
-
- su > foo -> does not send the password prompt to the file (that is done in
- stderr).
-
- su >& foo -> also sends the password prompt to the file foo as well as the output
- of the ensuing shell.
-
- Again, your system/shells may vary.
-
- -- Adam Fox
- adamfox@super.org
-