SUMMARY: newfs question
2007-12-25 2:13:00
Solution (both work)
echo y | newfs /dev/rdsk/$i
Or
newfs /dev/rdsk/$i << EOF
y
EOF
-----Original Message-----
From: codeprof-bounces at codeprof.com
[mailto:codeprof-bounces at codeprof.com] On Behalf Of Brian
Sent: Tuesday, October 21, 2003 2:32 PM
To: codeprof at codeprof.com
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!
_______________________________________________
codeprof mailing list
codeprof at codeprof.com
http://www.codeprof.com/execute/ask/?codeinfoid=26419
Comments
Got something to say?
You must be logged in to post a comment.

