From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,45e0ddf97f5f58c9 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-16 11:34:23 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!sol.ctr.columbia.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!uunet!world!gnewman From: gnewman@world.std.com (Gary Newman) Subject: Re: passwd redirection Message-ID: Organization: XMX Corporation, Bedford, MA X-Newsreader: TIN [version 1.2 PL2] References: <301cnl$1of@jeeves.niehs.nih.gov> Date: Sat, 16 Jul 1994 18:18:52 GMT Bob Nance (nance@niehs.nih.gov) wrote: : I have a need to run the passwd application and have it : take input from stdin. This is how I'd like to do it... : [snip] : Unfortunately, it appears that passwd does not read from stdin, so : this does not work. Does anyone have any ideas on a way to do this? A while ago I read the source code and found that passwd reads from /dev/tty which is the controlling tty of the current process, rather than stdin. In order to do what you want, I ran the change script with "at" which is started by the init process and thus has no controlling tty. It then defaults to read stdin. This was all done on a Sun with SUNOS4.X so I don't know how similar the source code to passwd is in OSF/1. -- Gary Newman gnewman@xmx.com XMX Corp. voice: (617) 275-9694 One Oak Park Fax: (617) 271-9164 Bedford, MA 01730