[HPADM] RE: Script question
From: Sweetser, Joe P. - PW Fleet (Joseph.Sweetser_at_ci.denver.co.us)
Date: Fri, 21 May 2004 10:27:05 -0600 To: "Sweetser, Joe P. - PW Fleet" <Joseph.Sweetser@ci.denver.co.us>, <hpux-admin@DutchWorks.nl>
OK. Got it. I think.
Read ANS < /dev/tty
Sometimes I just gotta write things down to figure 'em out!
> -----Original Message-----
> This should be simple, but my head is starting to hurt from hitting
> against the wall.
> I have a script that reads input from a file in a while loop, labels
> tapes based on the data in the file, umounts the tape after labeling,
> and prompts the user to put in another tape. The problem is the read
> command inside the while loop reads from the file (STDIN, I
> guess) and I
> want it to read from the terminal. Is there a way to make
> read do this?
> Can I use a re-direct to force it to read from the command line?
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact firstname.lastname@example.org Name: email@example.com Owner: firstname.lastname@example.org Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)