Tim Bell <tim.b...@sun.com> writes:

[...]

Harry wrote:
>> It appears there is no simple way to get the output by scripting,
>> since `format' doesn't close by itself.  Its probably dead easy to run
>> it with a `quit' or `exit' somewhere but I'm not sure how that might
>> be done.
>
> This works on my home system (OpenSolaris snv_127):
>
> % pfexec format < /dev/null
> Searching for disks...done
>
>
> AVAILABLE DISK SELECTIONS:
>        0. c5t0d0 <DEFAULT cyl 30397 alt 2 hd 255 sec 63>
>           /p...@0,0/pci108e,6...@5/d...@0,0
>        1. c5t1d0 <ATA-ST3750330AS-SD1A-698.64GB>
>           /p...@0,0/pci108e,6...@5/d...@1,0
>        2. c6t0d0 <ATA-ST3750330AS-SD1A-698.64GB>
>           /p...@0,0/pci108e,6...@5,1/d...@0,0
>        3. c6t1d0 <ATA-ST3750330AS-SD1A-698.64GB>
>           /p...@0,0/pci108e,6...@5,1/d...@1,0
> Specify disk (enter its number):
> %

Fails miserably here:

pfexec format </dev/null
-bash: /dev/null .. no such file or directory

>From your PS1 symbol it looks like you might be using tsch or even
csh?

Wonder if that makes a difference

_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to