<?xml version="1.0" encoding="windows-1252"?>
<node id="675140" title="Re: du with backticks" created="2008-03-19 21:35:09" updated="2008-03-19 17:35:09">
<type id="11">
note</type>
<author id="123017">
blahblahblah</author>
<data>
<field name="doctext">
The first error message, &lt;i&gt;du: cannot access `~skim': No such file or directory&lt;/i&gt;, made me curious.  I think that if you reduce your program to a very simple command you'll find that it's not running from the right directory or that &lt;i&gt;~skim&lt;/i&gt; doesn't exist?
&lt;code&gt;
my $homedir = '~bogus';
$du=`du -ch $homedir`;
print "$du";
&lt;/code&gt;
produces a similar message for me:
&lt;code&gt;
./test
du: cannot access `~bogus': No such file or directory
0       total
&lt;/code&gt;</field>
<field name="root_node">
675134</field>
<field name="parent_node">
675134</field>
</data>
</node>
