Re: substitute for NTs "net use"

2003-02-17 Thread Joe Mecklin
ok, thanks.


On Mon, 2003-02-17 at 07:54, Felix Geerinckx wrote:
> on Mon, 17 Feb 2003 13:37:57 GMT, [EMAIL PROTECTED] (Joe Mecklin)
> wrote: 
> 
> > Thanks for the info.  I appreciate the ideas.  Seeing your
> > response, I obviously didn't phrase my request as well as I could
> > have: 
> > 
> > I'm looking for a Perl module for Linux that allows "net use"
> > functionality; does anyone know if such a module exists?  I
> > believe what is presented here is meant to be installed on a MS
> > system. 
> 
> You will have to use the 'smbclient' command then.
> Perhaps there are some perl modules that interface with this command.
> 
> You could try
> 
> 
> 
> -- 
> felix
-- 
Joe Mecklin <[EMAIL PROTECTED]>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: substitute for NTs "net use"

2003-02-17 Thread Crowder, Rod
The Win32::NetResource Module will let you mount remote share


use Win32::NetResource;
use strict;
use warnings;

my$RemoteShare = {
'LocalName' => "Q:",
'RemoteName' => "server\\share",
};


my $UserName = "user";
my $Password = "password";
my $Connection = 1;
my $ErrorCode;


Win32::NetResource::AddConnection($RemoteShare,$Password,$UserName,$Connecti
on)
or die "unable to add share";

Win32::NetResource::GetError( $ErrorCode );
print $ErrorCode;




> -Original Message-
> From: Joe Mecklin [mailto:[EMAIL PROTECTED]]
> Sent: 17 February 2003 13:07
> To: [EMAIL PROTECTED]
> Subject: substitute for NTs "net use"
> 
> 
> I tried sending this last week and never saw it or any 
> response to it on the list, 
> so I'll try again:
> 
> 
> I'm tying to write a script which will connect to all PCs in 
> an internal
> network to update select files.  I currently have it working using
> 
> system("net use ...")
> 
> but I would like to use whatever module will replicate that
> connection/login/logout functionality; can anyone tell me which
> module(s) will allow me to do this?  Currently I have to run this from
> an NT box but would like to be able to move it to a Linux 
> server we are
> turning up so it will be available to anyone with permission 
> to perform
> this function w/o having to install Perl and this script on computers
> that would not otherwise need either..
> 
> TIA,
> Joe
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


The information contained in this e-mail is intended only for the individual
or entity
to whom it is addressed. Its contents (including any attachments) are
confidential
and may contain privileged information.

If you are not an intended recipient you must not use, disclose,
disseminate, copy
or print its contents. If you receive this email in error, please delete and
destroy
the message and notify the sender by reply email.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: substitute for NTs "net use"

2003-02-17 Thread Felix Geerinckx
on Mon, 17 Feb 2003 13:37:57 GMT, [EMAIL PROTECTED] (Joe Mecklin)
wrote: 

> Thanks for the info.  I appreciate the ideas.  Seeing your
> response, I obviously didn't phrase my request as well as I could
> have: 
> 
> I'm looking for a Perl module for Linux that allows "net use"
> functionality; does anyone know if such a module exists?  I
> believe what is presented here is meant to be installed on a MS
> system. 

You will have to use the 'smbclient' command then.
Perhaps there are some perl modules that interface with this command.

You could try



-- 
felix

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: substitute for NTs "net use"

2003-02-17 Thread Joe Mecklin
Jenda,

Thanks for the info.  I appreciate the ideas.  Seeing your response, I
obviously didn't phrase my request as well as I could have:

I'm looking for a Perl module for Linux that allows "net use"
functionality; does anyone know if such a module exists?  I believe what
is presented here is meant to be installed on a MS system.

Joe


On Mon, 2003-02-17 at 07:31, Jenda Krynicky wrote:
> From: Joe Mecklin <[EMAIL PROTECTED]>
> 
> > I'm tying to write a script which will connect to all PCs in an
> > internal network to update select files.  I currently have it working
> > using
> > 
> > system("net use ...")
> > 
> > but I would like to use whatever module will replicate that
> > connection/login/logout functionality; can anyone tell me which
> > module(s) will allow me to do this?
> 
> Win32::AdminMisc, Win32::Lanman, Win32::FileOp ...
> 
> Eg:
>   use Win32::FileOp qw(Map);
>   Map 'X:' => '//server/share', 
>   {user => $username, passwd => $password, persistent => 1};
> 
> You may install all via PPM.
> Win32::FileOp is best installed from http://Jenda.Krynicky.cz/perl
> 
> >  Currently I have to run this from
> > an NT box but would like to be able to move it to a Linux server we
> > are turning up so it will be available to anyone with permission to
> > perform this function w/o having to install Perl and this script on
> > computers that would not otherwise need either..
> 
> Well that's a totally different task. I guess you could use some 
> executable that comes with samba to mount a WinNT/2k share, but I 
> know next to nothing about that.
> 
> Jenda
> = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
> When it comes to wine, women and song, wizards are allowed 
> to get drunk and croon as much as they like.
>   -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: substitute for NTs "net use"

2003-02-17 Thread Jenda Krynicky
From: Joe Mecklin <[EMAIL PROTECTED]>

> I'm tying to write a script which will connect to all PCs in an
> internal network to update select files.  I currently have it working
> using
> 
> system("net use ...")
> 
> but I would like to use whatever module will replicate that
> connection/login/logout functionality; can anyone tell me which
> module(s) will allow me to do this?

Win32::AdminMisc, Win32::Lanman, Win32::FileOp ...

Eg:
use Win32::FileOp qw(Map);
Map 'X:' => '//server/share', 
{user => $username, passwd => $password, persistent => 1};

You may install all via PPM.
Win32::FileOp is best installed from http://Jenda.Krynicky.cz/perl

>  Currently I have to run this from
> an NT box but would like to be able to move it to a Linux server we
> are turning up so it will be available to anyone with permission to
> perform this function w/o having to install Perl and this script on
> computers that would not otherwise need either..

Well that's a totally different task. I guess you could use some 
executable that comes with samba to mount a WinNT/2k share, but I 
know next to nothing about that.

Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




substitute for NTs "net use"

2003-02-17 Thread Joe Mecklin
I tried sending this last week and never saw it or any response to it on the list, 
so I'll try again:


I'm tying to write a script which will connect to all PCs in an internal
network to update select files.  I currently have it working using

system("net use ...")

but I would like to use whatever module will replicate that
connection/login/logout functionality; can anyone tell me which
module(s) will allow me to do this?  Currently I have to run this from
an NT box but would like to be able to move it to a Linux server we are
turning up so it will be available to anyone with permission to perform
this function w/o having to install Perl and this script on computers
that would not otherwise need either..

TIA,
Joe


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




substitute for NTs "net use"

2003-02-14 Thread Joe Mecklin
I'm tying to write a script which will connect to all PCs in an internal
network to update select files.  I currently have it working using

system("net use ...")

but I would like to use whatever module will replicate that
connection/login/logout functionality; can anyone tell me which
module(s) will allow me to do this?  Currently I have to run this from
an NT box but would like to be able to move it to a Linux server we are
turning up so it will be available to anyone with permission to perform
this function w/o having to install Perl and this script on computers
that would not otherwise need either..

TIA,
Joe


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]