SUMMARY: newfs question

From: Brian <mtkann_at_thekann.com>
Date: Tue Oct 21 2003 - 14:57:35 EDT
Thank you all for the very quick responses!

Solution (both work)

echo y | newfs /dev/rdsk/$i

Or

newfs /dev/rdsk/$i << EOF
y
EOF

-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Brian
Sent: Tuesday, October 21, 2003 2:32 PM
To: sunmanagers@sunmanagers.org
Subject: newfs question


All,

I am building a new server which has a very large number of file systems.  I
wrote a simple shell script to do the newfs command on all necessary file
systems:

for i in `cat /tmp/Slices`
do
echo $i
newfs /dev/rdsk/$i
done

Is there a way on passing the "y" to the question "Do you want to make a new
file system....".  unfortunately newfs doesn't take the -y option.

Thanks!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Tue Oct 21 14:57:25 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:20 EST