home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / security / 4827 < prev    next >
Encoding:
Text File  |  1992-11-17  |  999 b   |  33 lines

  1. Newsgroups: alt.security
  2. Path: sparky!uunet!super!adamfox
  3. From: adamfox@b115.super.org (Adam Fox)
  4. Subject: Re: Redirecting SU's output
  5. Message-ID: <1992Nov16.220926.4718@super.org>
  6. Sender: adamfox@b115 (Adam Fox)
  7. Nntp-Posting-Host: b115
  8. Organization: Supercomputing Research Center, Bowie, MD  USA
  9. References:  <1ducbgINN65k@usenet.INS.CWRU.Edu>
  10. Date: Mon, 16 Nov 1992 22:09:26 GMT
  11. Lines: 20
  12.  
  13. In article <1ducbgINN65k@usenet.INS.CWRU.Edu>, ck041@cleveland.Freenet.Edu (Kevin Currie) writes:
  14. |> 
  15. |> 
  16. |>     Is is possible to redirect SU's screen output to a text file?
  17. |> I tried SU > textfile    but that just gives me an empty file.
  18. |>     Any ideas?
  19.  
  20. What type of system are you running?   The following works under SunOS 4.1.1
  21. (under csh/tcsh)
  22.  
  23. su > foo -> does not send the password prompt to the file (that is done in
  24. stderr).
  25.  
  26. su >& foo -> also sends the password prompt to the file foo as well as the output
  27. of the ensuing shell.
  28.  
  29. Again, your system/shells may vary.
  30.  
  31. -- Adam Fox
  32. adamfox@super.org
  33.