hello...I wrote the following script...
#!/usr/bin/perl -w
$d = det_dir_name();
$size = 0;
DIR = opendir $d
While (readdir DIR) {
next if /^\.\.?$/ ;
next if -d$_;
$size == -s $_;
}
print $size
print $d
..All I need to do is where ever the script is...I need for it to tell me the diskusage of that and subsequent directories....
Currently I am getting a BAREWORD error..on the DIR = line
PLEAASE>>HELP...
THANKS
Karim
I am supposed to make it do the same as this ASP Script...
<%
'Response.ContentType = "text/plain"
vpath = Request("vpath"
IF vpath = "" then
vpath = "/"
END IF
realPath = server.mappath(vpath)
Set fs = CreateObject("Scripting.FileSystemObject"
Set f = fs.GetFolder(realPath)
response.write f.Size & vbcrlf
response.write realPath & vbcrlf
response.write vpath & vbcrlf
%>
#!/usr/bin/perl -w
$d = det_dir_name();
$size = 0;
DIR = opendir $d
While (readdir DIR) {
next if /^\.\.?$/ ;
next if -d$_;
$size == -s $_;
}
print $size
print $d
..All I need to do is where ever the script is...I need for it to tell me the diskusage of that and subsequent directories....
Currently I am getting a BAREWORD error..on the DIR = line
PLEAASE>>HELP...
THANKS
Karim
I am supposed to make it do the same as this ASP Script...
<%
'Response.ContentType = "text/plain"
vpath = Request("vpath"
IF vpath = "" then
vpath = "/"
END IF
realPath = server.mappath(vpath)
Set fs = CreateObject("Scripting.FileSystemObject"
Set f = fs.GetFolder(realPath)
response.write f.Size & vbcrlf
response.write realPath & vbcrlf
response.write vpath & vbcrlf
%>