SUMMARY: newfs question

From: Brian (mtkann@thekann.com)
Date: Tue Oct 21 2003 - 14:52:38 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



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:20 EDT