<div>oh yeah, duh! sorry bout that. i got that error when i ran make test during the&nbsp;installing of the Filesys::DiskSpace module. </div>
<div>&nbsp;</div>
<div>#!/usr/bin/perl<br>use strict;<br>use warnings;</div>
<div><strong><font style="BACKGROUND-COLOR: #ffcc00">use Filesys::DiskSpace;</font></strong></div>
<div>my $space_limit = 5;&nbsp; #If less than 5%, scream</div>
<div>if ($#ARGV ==1) {<br>&nbsp;&nbsp;&nbsp; print &quot;Usage is $0 &lt;fs&gt; [&lt;fs&gt;....]\n&quot;;<br>&nbsp;&nbsp;&nbsp; exit (8);<br>}</div>
<div># Loop through each directory in the list.<br>foreach my $dir (@ARGV) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Get the file system info<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my ($fs_type, $fs_desc, $used,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $avail, $fused, $favail) = df $dir;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # The amount of free space<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $per_free = (($avail) / ($avail+$used)) * 100.0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($per_free &lt; $space_limit) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # Tailor this command to meet your needs<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; my $msg = sprintf(<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;WARNING: FREE SPACE on $dir &quot;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;has dropped to %0.2f%%&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $per_free);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; system(&quot;wall &#39;$msg&#39;&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>}<br><br><br>
</div>
<div class="gmail_quote">On Wed, Dec 24, 2008 at 9:31 AM, Randall Munden <span dir="ltr">&lt;<a href="mailto:randall.munden@gmail.com">randall.munden@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">It would be very helpful if we knew what your script is trying to do.<br>Are you using the the perl and modules that installed from the solaris<br>
package or is this a home rolled perl?<br>
<div>
<div></div>
<div class="Wj3C7c"><br>On Wed, Dec 24, 2008 at 9:13 AM, Emmanuel Mejias<br>&lt;<a href="mailto:emmanuel.mejias@gmail.com">emmanuel.mejias@gmail.com</a>&gt; wrote:<br>&gt; Hey mongers, I&#39;m not sure if this is the appropriate place to post, but I<br>
&gt; just wanted to see if any has seen this error before when trying to run a<br>&gt; script (with a module) on Solaris 10.<br>&gt;<br>&gt; solaris-ufs....An error occured. statvfs failed. Did you run h2ph?<br>&gt; I&#39;m not able to find any useful info to correct this and it&#39;s annoying.<br>
&gt; Should I maybe hit up Solaris forums instead of Perl?<br>&gt;<br>&gt; Thanks,<br>&gt; em<br></div></div>&gt; _______________________________________________<br>&gt; kc mailing list<br>&gt; <a href="mailto:kc@pm.org">kc@pm.org</a><br>
&gt; <a href="http://mail.pm.org/mailman/listinfo/kc" target="_blank">http://mail.pm.org/mailman/listinfo/kc</a><br>&gt;<br><font color="#888888"><br><br><br>--<br>-- Knowing is not enough; &nbsp;we must apply. &nbsp;Willing is not enough; we must do.<br>
<br><a href="http://www.librarything.com/profile/blather" target="_blank">http://www.librarything.com/profile/blather</a><br><a href="http://blather.smugmug.com/" target="_blank">http://blather.smugmug.com/</a><br></font></blockquote>
</div><br>