Win32-Lanman can do this.
Check out CPAN:
Look at grabbing 1.0.9.2
http://www.cpan.org/modules/by-authors/id/J/JH/JHELBERG/
Steven
-Original Message-
From: Brian Gibson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 9:10 AM
To: [EMAIL PROTECTED]
Subject: best way to
Brian Gibson wrote:
Does anyone know of a module you can use to list all of the current
connections to remote shares (whether they be to a UNC path or to a
drive letter) so they can be disconnected?
I thought Win32::LanMan could do this but when I run install
Win32::Lanman from PPM I
This is what I do manually on a w2k server:
[1] enable network interface;
[2] dhcp release
[3] dhcp renew
[4] do some network stuff /
[5] disable network interface
How can I automate this?
Which modules contain functionality that I need to know?
--
Best Regards,
mds
mds resource
Henry,
Thanks for this bit of code - I really need something like this to get me
started. I made the changes so as to get my feet wet. Fired up the
script and got the following:
IO::Socket::INET: Timeout at ldap_test2.pl line 7.
Where do I go from here to trouble shoot this problem?
You might want to check out the netsh command. You can use it to dump the
current network configuration (or a part of it) to a file, which can then
be used later to restore your desired setup. I use this to configure my
laptop's network settings when moving from one network environment to
If you just can't get IO::Tee to work, write your own:
This function will print to both STDERR and a specified in
logfile. The syntax to use it is:
writeit(Your String\n, $YOUR_LOGFILE);
Here's the function:
sub writeit{
my $string = shift @_;
my $LOG = shift @_;
Win32::Lanman::NetSessionEnum($server, $client, $user, \@info);
Win32::Lanman::NetSessionDel($server, $client, $user);
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 9:41 AM
Cc: [EMAIL PROTECTED]
Subject: RE: best way to
I've been charged with putting together a Brown Bag session for a
group of application people on what Perl is and what it does for me as
a System Administrator and what it might do for them. Anyone know of a
place to get some good information to help put this together. Most of
these people
cpan.org is a good place to start - stressing the fact that most intricate
code you will ever need to write has probably been done by somebody else.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 6:28 PM
Subject:
Groups,
I have this snippet of code:
$dbh = DBI-connect( dbi:ODBC:${db_name}, $user, $pass)
or DoError(Unable to connect: $DBI::errstr);
#$dbh-debug(2);
$fsql = qq!select empl_no_a, user_ln, user_fn, user_mi, aka,
longname_a, longname_b, longname_c, useaka from activeempsinfo!;
Agreed except in this case what I have to read is a FoxPro database -
(yuck!)
-Original Message-
From: Gerald Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 11:28 AM
To: Norris, Joseph
Cc: Mysql_List (E-mail); Perl Database (E-mail); Perl Web (E-mail); Perl
Win32 Users
Apologise all you want, it's still SPAM!
Marty
- Original Message -
From: Carter Thompson [EMAIL PROTECTED]
To: Perl-Win32-Users (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 8:37 PM
Subject: Job Op in Perl
Considering the current economy and the fact that technical
The example I quoted will do both, providing that you are
using the print command.
How does your script normally output to STDERR? Does it use the warn
command? If so would it not be too much effort to change:
warn This is an error\n;
to
print $tee This is an error\n;
I too use Perl/Tk as a newbie. It works but its learn curve is steep. Make
lots of simple examples.
Dick
- Original Message -
From: Beckett Richard-qswi266 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 20, 2002 6:36 AM
Subject: From dos to a window.
Chaps,
I've just
Hello everybody,
Getting the error: Can't locate object method new via package
Net::SMTP::MultiPart
Surprised I am getting the error and can't figure out why. I have all the
module requirements and the module installed correctly (see EOM, even tried
reinstalling it). The code below is the
Hi,
I've been charged with putting together a Brown Bag session for a
group of application people on what Perl is and what it does for me as
a System Administrator and what it might do for them. Anyone know of a
place to get some good information to help put this together. Most of
these
Title: Message
I don't know if this
is the correct group for this, as I rarely post anything, if not, I'm sure
someone will be kind enough to mention it.
Issue
1
I have a situation
where two processes have to be created from the same script. I'm using
Win32::Process::Create to do this.
Thoenen, Peter Mr. EPS wrote:
Hello everybody,
Getting the error: Can't locate object method new via package
Net::SMTP::MultiPart
Change all refs from Net::SMTP::MultiPart to Net::SMTP::Multipart
^ ^
lowercase p on Multipart.
--
Heres a weird one you guys:-
I take a HTML file, I strip the HTML tags
with the substitution s/.*?//g; (its a simple
HTML file so all of the tags get removed, but
file size runs up to 14MB).
I then print the file to a text document using
perl program.pl file.txt.
I make another program where
These scripts both use to work. But now they don't. Both of them are for
sending e-mail. I'm using Win2k Adv. Server. I'm using IIS's default SMTP
server on a port number other than port 25 and I allow relaying through that
port. Let's just say it's port 87654. (Can you tell I'm paranoid?)
I definitely fixed some problems when using Foxpro in DBD::ODBC in the
later/latest versions. However, I do not believe that ActiveState has
caught up with me yet. Use search.cpan.org searching for DBD::ODBC to check
the changes information and compare that with the version you are running
now.
21 matches
Mail list logo