<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how can I get major and minor number (perl, shell script) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318131#M641990</link>
    <description>&lt;P&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;While you seem to have found a solution, remember, CPAN is your friend.&amp;nbsp; To guarantee portability, you could fetch and install 'File::Stat::Bits':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://search.cpan.org/~fedorov/File-Stat-Bits-1.01/" target="_blank"&gt;http://search.cpan.org/~fedorov/File-Stat-Bits-1.01/&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2011 12:34:14 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2011-08-31T12:34:14Z</dc:date>
    <item>
      <title>how can i get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317827#M641985</link>
      <description>&lt;P&gt;how can i get with standard modules the "major nr" of unix group file ?&lt;BR /&gt;&lt;BR /&gt;at Modul "File::stat" i didn't find anything:&lt;BR /&gt;&lt;BR /&gt;i only found following modul :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~pirzyk/Unix-Mknod-0.04/lib..." target="_blank"&gt;http://search.cpan.org/~pirzyk/Unix-Mknod-0.04/lib...&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;but in my perl env it doesn't exist :&lt;BR /&gt;&lt;BR /&gt;i want of example file /dev/volumegr/group following outputs :&lt;BR /&gt;ll /dev/volumegr/group&lt;BR /&gt;crw-r--r-- 1 root sys 64 0x040000 Oct 8 2007 /dev/volumegr/group&lt;BR /&gt;&lt;BR /&gt;major: 0x040000 , minor: 64﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or the other way with shell script is to parse "ll -d /dev/volumegr/group" ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 08:06:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317827#M641985</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-08-31T08:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: how can I get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317879#M641986</link>
      <description>&lt;P&gt;tusc shows that ll(1) is just calling lstat(2).&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 09:52:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317879#M641986</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-31T09:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: how can i get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317955#M641987</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;@ tusc shows that ll(1) is just calling lstat(2).﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i search now for "lstat"&amp;nbsp; and i found "lstat" use field nr. 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://perldoc.perl.org/functions/stat.html﻿" target="_blank"&gt;lstat / stat function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried with a little script , but no success&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 09:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317955#M641987</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-08-31T09:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: how can I get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317979#M641988</link>
      <description>&lt;P&gt;The major and minor are encoded in the size field.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 09:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5317979#M641988</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-31T09:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: how can I get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318085#M641989</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i got it :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;printf " File major is %d ,\n minor is 0x%06.6x\n", ($dev &amp;gt;&amp;gt; 24) &amp;amp; 0xff, $rdev &amp;amp; 0xffffff;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 12:02:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318085#M641989</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-08-31T12:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: how can I get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318131#M641990</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;While you seem to have found a solution, remember, CPAN is your friend.&amp;nbsp; To guarantee portability, you could fetch and install 'File::Stat::Bits':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://search.cpan.org/~fedorov/File-Stat-Bits-1.01/" target="_blank"&gt;http://search.cpan.org/~fedorov/File-Stat-Bits-1.01/&lt;/A&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 12:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318131#M641990</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-08-31T12:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: how can I get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318243#M641991</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what do yo recommend ﻿ ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my solution or&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~fedorov/File-Stat-Bits-1.01/" target="_blank"&gt;http://search.cpan.org/~fedorov/File-Stat-Bits-1.01/&lt;/A&gt;﻿&amp;nbsp;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;a little question : with what "key" to you search at CPAN ? with "major nr" you get nothing and only "major" you get to much information ...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 13:27:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318243#M641991</guid>
      <dc:creator>support_billa</dc:creator>
      <dc:date>2011-08-31T13:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: how can I get major and minor number (perl, shell script)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318247#M641992</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1195711"&gt;@support_billa&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;what do yo recommend ﻿ ?&lt;/P&gt;&lt;P&gt;my solution or&lt;BR /&gt;&lt;A href="http://search.cpan.org/%7Efedorov/File-Stat-Bits-1.01/" target="_blank"&gt;http://search.cpan.org/~fedorov/File-Stat-Bits-1.01/&lt;/A&gt;﻿&amp;nbsp;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;a little question : with what "key" to you search at CPAN ? with "major nr" you get nothing and only "major" you get to much information ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For portability, I would use the Perl module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for how I found the module, the stat() system call is the key, so I searched for modules with "stat".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...JRF...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2011 13:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-get-major-and-minor-number-perl-shell-script/m-p/5318247#M641992</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-08-31T13:32:05Z</dc:date>
    </item>
  </channel>
</rss>

