Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site amdcad.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!amdcad!phil From: phil@amdcad.UUCP (Phil Ngai) Newsgroups: net.unix Subject: proper use of su Message-ID: <877@amdcad.UUCP> Date: Thu, 28-Mar-85 12:31:34 EST Article-I.D.: amdcad.877 Posted: Thu Mar 28 12:31:34 1985 Date-Received: Fri, 29-Mar-85 00:29:32 EST Distribution: net Organization: AMDCAD, Sunnyvale, CA Lines: 18 On my 780 running 4.2, I sometimes want cron to execute certain shell scripts under user ids other than root, such as uucp and news. Sometimes I can do: /bin/su news < shell.script and sometimes I have to do: echo shell.script | /bin/su news Could someone explain this? thanks -- Phil Ngai (408) 749-5720 UUCP: {ucbvax,decwrl,ihnp4,allegra}!amdcad!phil ARPA: amdcad!phil@decwrl.ARPA