script strategy to list disks and partitions
script strategy to list disks and partitions
(OP)
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.
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.
RE: script strategy to list disks and partitions
Blue![[Dragon] Dragon](https://www.tipmaster.com/images/Dragon.gif)
If I wasn't Blue, I would just be a Dragon...
RE: script strategy to list disks and partitions
RE: script strategy to list disks and partitions
RE: script strategy to list disks and partitions
Thanks a ton.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
RE: script strategy to list disks and partitions
Annihilannic
tgmlify - code syntax highlighting for your tek-tips posts