Hello All,
Tried the search for this to no avail.
I am writing a Perl application that must report disks and partitions on Solaris 8, 9, and 10. I am familiar with the 'format' command and it provides all the info I need. However, it expects someone to interact with it to move through the menus.
The same application runs on Linux, also, and there, I can easily use 'fdisk -l' to get exactly what I need (list of disks and partitions there on).
Is there a more direct route to this info than via 'format?'
I hate having to maneuver through the format command just to get a reporting of disks/partitions when an incorrect move can trash the machine. There must be a safer approach.
TIA.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
Tried the search for this to no avail.
I am writing a Perl application that must report disks and partitions on Solaris 8, 9, and 10. I am familiar with the 'format' command and it provides all the info I need. However, it expects someone to interact with it to move through the menus.
The same application runs on Linux, also, and there, I can easily use 'fdisk -l' to get exactly what I need (list of disks and partitions there on).
Is there a more direct route to this info than via 'format?'
I hate having to maneuver through the format command just to get a reporting of disks/partitions when an incorrect move can trash the machine. There must be a safer approach.
TIA.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.