Ok, I'm nuts, I went a little crazy when I got output
to my page. Actually, I'm still only getting output from
the local machine, any help would be greatly appreciated....
M.
-----Original Message-----
From: Gray, Martha J.
Sent: Thursday, March 01, 2001 5:15 PM
To: [EMAIL PROTECTED]
Subject: RE: Doing a file directory
Well,
I finally got it!!
It is soooo dumb!!
What I did was:
$path = ("$netresource{LocalName}");
print `cmd.exe /c dir $path`;
I had been doing a:
chdir("$netresource{LocalName}");
for all the other remote operations which worked fine
but not for this one. go figure.
Now that I know the problem I will try some of the other
methods to format the output better, (ie try using <pre> tags)
Thanks again for the help!!!
Martha
-----Original Message-----
From: Gray, Martha J.
Sent: Thursday, March 01, 2001 4:54 PM
To: 'A. Abell'; [EMAIL PROTECTED]
Subject: RE: Doing a file directory
Thanks to all who responded to my question.
I am still unfortunately unable to print
dir directory listing (i.e. what you get when you
do a "dir" from a dos prompt)
Suggestions I've tried:
print `cmd.exe /c dir $path`;
$tmp = `dir ...`;
print $tmp;
They work (except for the output format) if I use a local
directory on my server. I am however attempting to do this on
remote machines.
I use WIN32::NetResource to connect to these machines but when I attempt
the above I get a "access denied". I am connecting with an account
user name and password that does have access....heck I use my web
pages (with these accounts) to do registry editing on these machines.
Am I missing something?
If I use the opendir, readdir, & closedir I only get the file & directory
names.
None of the stats.....
I didn't want to try the "stat" command since will only
(as far as I could tell) give file information and I want
the whole directory information.
Help!!
Something this simple (conceptually anyway) shouldn't be driving me
this crazy!!
Regards,
Martha
Martha J. Gray
Software Developer
UUNet, a WorldCom Company
[EMAIL PROTECTED]
(614)723-4134
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web