newfs without confirmation

From: Mark S. Yamnicky <marco_at_nirvana.ES.bss.boeing.com>
Date: Thu, 04 Apr 2002 13:29:00 -0800 (PST)

Admins,

My task is simply however there is a hiccup.

I'm writing a script that includes a few newfs routines. In an attempt to
get newfs to run without end user input I tried:

newfs /dev/rrz24a << EOF
y
EOF

When I do this I see the message:

Warning: /dev/rrz24a is marked in use for 4.2BSD in the disklabel.
If you continue with the operation you can
possibly destroy existing data.

however the prompt to continue never accepts the "y". The script continues
as if I said no. I get the same result even if I simply enter it at the
command line. Any thoughts on how I might get around this?

Thanks
:wq!
-m

Mark S. Yamnicky
mark.yamnicky_at_es.bss.boeing.com
Received on Thu Apr 04 2002 - 21:29:21 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT