Re: stats on partitions

2007-02-05 Thread Chad Eldridge
: 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

Re: stats on partitions

2007-02-05 Thread Tom Phoenix
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

RE: stats on partitions

2007-02-05 Thread Tony Heal
Subject: 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

Re: stats on partitions

2007-02-05 Thread Tom Phoenix
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 ask

Re: stats on partitions

2007-02-05 Thread Lawrence Statton XE2/N1GAK
> 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`

Re: stats on partitions

2007-02-05 Thread Lawrence Statton XE2/N1GAK
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

RE: stats on partitions

2007-02-05 Thread Tony Heal
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()? Tony > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PRO

Re: stats on partitions

2007-02-05 Thread Tom Phoenix
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

stats on partitions

2007-02-05 Thread Tony Heal
This message was originally sent Sun 2/4/2007 11:32 PM, but does not appear to have made it to the list. So I have changed the subject slightly. OK, what am I missing. I can not find anything that will provide me with the stats on a partition. I could shell out and use df or du but is it poss