Summary: newfs

From: Doug S Johnson <>
Date: Mon Oct 01 2001 - 18:40:38 EDT
Thanks to all that replied to numerous to list.

I had several solutions that would work:

Use mkfs it's non-interactive

Use expect

newfs /dev/rdsk/c0t8d0s0 <  $inputfile  (Input file has a "y" in it)

newfs /dev/rdsk/cxtxdxs0 << EOF y EOF

newfs /dev/rdsk/cxtxdxs0 << END y END

newfs  /dev/rdsk/cxtxdxs0 < /dev/null

echo y | newfs /dev/rdsk/cxtxdxsx (Suggested by plenty and my personal 

----- Forwarded by Doug S Johnson/RCS/Raytheon/US on 10/01/01 05:31 PM 

"Doug S Johnson" <>
Sent by:
09/28/01 01:05 PM

        Subject:        newfs

I need to write a script which performs a newfs on several do I answer "y" to the question below within the script?? 

        "construct a new file system /dev/rdsk/cxtxdxsx: (y/n) " 

Thanks In Advance. 


sunmanagers mailing list
Received on Mon Oct 1 17:40:40 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:26 EST