Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!bingvaxu!sunybcs!boulder!pikes!pklammer From: pklammer@pikes.Colorado.EDU (Peter F. Klammer) Newsgroups: comp.unix.questions Subject: How to input to passwd from script? Keywords: UNIX shell programming password redirection Message-ID: <2182@pikes.Colorado.EDU> Date: 11 Apr 89 17:47:20 GMT Organization: University of Colorado, Denver Lines: 25 The good news: I got my UNIX C SHELL FIELD GUIDE! The bad news: pages 281-312 are blank (sigh). Thank you all for help and responses to "how to read a file from csh". I am finding my ways of thinking becoming more accomodated to csh/pipes/unix ways of doing. For instance, instead of reading that file, I piped it to awk a couple times to pick out and display the interesting lines with line numbers, and my csh script just handles a user response of the selected line number. Then I give that number to another awk command and voila!, I get just the one line that I really wanted in the first place. I am writing a script for password/account maintenance; we generate initial passwords around here. I find that passwd (the program) is kinda insistent about reading from the terminal: it gets around redirection like: passwd