Summary: newfs

From: Doug S Johnson <Doug_S_Johnson_at_raytheon.com>
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 
favorite).


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


"Doug S Johnson" <Doug_S_Johnson@raytheon.com>
Sent by: sunmanagers-admin@sunmanagers.org
09/28/01 01:05 PM

 
        To:     sunmanagers@sunmanagers.org
        cc: 
        Subject:        newfs



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

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

Thanks In Advance. 

                                                        Doug

_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
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