: Re: stats on partitions
On 2/5/07, Tony Heal <[EMAIL PROTECTED]> wrote:
OK, so bash is the shell I am using and the df utility is a
standard Xnix command. My question is, is there a perl way
of getting the stats on partitions without having to shell out
using system() or exec()?
Well, t
On 2/5/07, Lawrence Statton XE2/N1GAK <[EMAIL PROTECTED]> wrote:
> In order to access the system's filesystem information, the Unix
> utility df is a set-id program (one with special privileges).
Umm, no.
Interesting. It is set-id on my machine, but maybe Mac OS X is an
exception. (I wonder w
the list I will get it. If you CC me I will get the reply twice.
Thanks again
Tony
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Phoenix
> Sent: Monday, February 05, 2007 12:43 PM
> To: [EMAIL PROTECTED]
> Cc: beginners@perl.org
>
On 2/5/07, Tony Heal <[EMAIL PROTECTED]> wrote:
OK, so bash is the shell I am using and the df utility is a
standard Xnix command. My question is, is there a perl way
of getting the stats on partitions without having to shell out
using system() or exec()?
Well, this is not unlike asking if the
> In order to access the system's filesystem information, the Unix
> utility df is a set-id program (one with special privileges).
Umm, no.
[EMAIL PROTECTED] - /tmp % uname -a
SunOS hummer 5.8 Generic_117350-41 sun4u sparc SUNW,Ultra-Enterprise Solaris
[EMAIL PROTECTED] - /tmp % ls -l `which df`
http://search.cpan.org/search?query=disk+space+DF&mode=all
--
Lawrence Statton - [EMAIL PROTECTED] s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
place them into the correct order.
--
To unsu
TECTED] On Behalf Of Tom Phoenix
> Sent: Monday, February 05, 2007 11:48 AM
> To: [EMAIL PROTECTED]
> Cc: beginners@perl.org
> Subject: Re: stats on partitions
>
> On 2/5/07, Tony Heal <[EMAIL PROTECTED]> wrote:
>
> > Specifically I want to get the total, used and
On 2/5/07, Tony Heal <[EMAIL PROTECTED]> wrote:
Specifically I want to get the total, used and available space similar
to what the bash df command does.
I don't believe that bash has a df command, but there's a standard
Unix utility called df instead. There's no need to invoke bash in
order to