Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: gnewman@world.std.com (Gary Newman)
Subject: Re: passwd redirection
Date: Sat, 16 Jul 1994 18:18:52 GMT	[thread overview]
Message-ID: <Ct1pJG.2Gw@world.std.com> (raw)
In-Reply-To: 301cnl$1of@jeeves.niehs.nih.gov

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


      parent reply	other threads:[~1994-07-16 18:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-07-13 18:45 passwd redirection Bob Nance
1994-07-15 15:10 ` Roberto Dorich
1994-07-17 12:23   ` A. Andrew Brennan
1994-07-16 18:18 ` Gary Newman [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox