*BSD News Article 88385


Return to BSD News archive

Newsgroups: comp.unix.bsd,comp.unix.bsd.freebsd,comp.unix.bsd.bsdi.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.maxwell.syr.edu!news.mathworks.com!fu-berlin.de!news.gtn.com!klicman.de!ora.de!bad
From: bad@ora.de (Christoph Badura)
Subject: Re: a script to call chpass, make the change, then continue
Message-ID: <E56nIu.94z@ora.de>
Organization: Verlag O'Reilly
References: <32F63F22.622C@hnet.net>
Date: Thu, 6 Feb 1997 13:16:06 GMT
Lines: 14
Xref: euryale.cc.adfa.oz.au comp.unix.bsd:16871 comp.unix.bsd.bsdi.misc:5869

In <32F63F22.622C@hnet.net> Kyle Howard <kyle@hnet.net> writes:

>I am writing a shell script that makes changes to user's info.  Among
>other tasks (that it performs correctly), I want the script to call
>chpass (chpass $username), maks a change and save it, then continue to
>the next task (which it performs correctly).

Set the environment variable EDITOR to ed and pipe the edit script on stdin.

-- 
Christoph Badura

Now available in print: Lion's Commentary on UNIX 6th Edition, with Source Code
			http://www.peer-to-peer.com/