RE: installing a Perl script as a service on NT (Debbie Thomson)

2001-03-14 Thread ckirn
Hi Deb, try using Dave Roth's Win32::Daemon - it works great for me. The only thing is that you have to extend your script to get all the features of this module. Here is an example: # Define how long to wait before a default status update is set. Win32::Daemon::Timeout( 5 ); # Start the servi

RE: Perl syntax of VBScript variables

2001-03-14 Thread Dave Roth
Question: What is the correct syntax of the VB array element "Machine.IPAddresses(0)" in Perl? Answer: $IPAddressThingie = $machine->IPAddresses(0); BTW: I am just curious...why are you using Enum->Next() instead of in()? dave -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Perl syntax of VBScript variables

2001-03-14 Thread farley . balasuriya
Hi all, I am trying to rewrite this VBScript in Perl. 'do a query '-- set Machines = WbemServices.ExecQuery("select * From SMS_R_System") For Each Machine in Machines wscript.echo Machine.Name + ": " + Machine.IPAddresses(0) Next Question: What is the correct syntax of the VB a

How to check if file is locked.

2001-03-14 Thread John Watson
I have a perl script that processes files in directories and zips them up. The problem I have is that some of the files may be in the process of being copied into the directory I am monitoring while I am trying to zip them up. I have tried to wait for the file to finish copying before zipping by

Win32::AdminMisc module question

2001-03-14 Thread Nguyen_Mike
Hello, I am using Windows NT server 4.0 with IIS 4.0 and the latest version of ActivePerl. I'm having a few problems with Win32::AdminMisc::LogonAsUser(). I am attempting to log on users to the NT server with this function via a CGI form. But when I try to use the script I've written, the func

RE: Win32:AdminMisc:LogonAsUser Question 2.

2001-03-14 Thread Nguyen_Mike
Nope. There is nothing that printed out that had to do with the user who was logged onto the server when I did that. Was there supposed to be? Mike Nguyen -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 18, 2000 1:26 AM To: Nguyen_Mike Cc: '[EMAIL

Win32:AdminMisc:LogonAsUser Question 2.

2001-03-14 Thread Nguyen_Mike
Okay, I got the thing to work. I returns a one, and my logon name has changed from the anonymous user account to my real user account. So am I not logged onto the server? If I am, why am I still seeing the authentication window pop up with I need to access a folder that is protected by the NT C

Re: While we're waiting for a search engine for the listserv archives....

2001-03-14 Thread Robert White
From: <[EMAIL PROTECTED]> > you might want to check out http://marc.theaimsgroup.com/ - they have a > searchable archive of several activestate lists (not to mention a listserv > on every other topic i could imagine). ftp://bangkokwizard.com/pub/perl/ has PerlWeb and Users for the last year

Win32::EventLog::GetMessageText problems

2001-03-14 Thread Paul Weintraub
Good day - I am having issues with the GetMessageText command. I am running a script that goes through a list of servers and goes to each of their eventlogs and prints out the errors that occur. I have set it up to print out the Event ID and the description. However, it seems that the descripti

Re: PPM - verify errors

2001-03-14 Thread Michael Peck
I hit this a few days ago, while www.activestate.com was down. After it came back up, it turns out that they changed the http site so that ppm only works if you have build 5.6.0.623 or later. They switched 623 to a new version of ppm, and apparently made some changes to the server to accomodate

RE: PPM - verify errors

2001-03-14 Thread Joris Lambrecht
just a guess, but the , at the end of the second line should be a ; Not ? Also, if that's a hard return after receive( your entire statement is bro-ken. let me know if it worked out, joris -Original Message- From: Robjohns, Ashley - COMPAQ [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Marc

installing a Perl script as a service on NT

2001-03-14 Thread Debbie Thomson
Hi, all- Does anyone have any experience in installing a Perl script as a service under NT? I have a script that I converted to an executable using Perl2Exe. I'm trying to install it as a service under NT4 SP6a using instsrv.exe and srvany.exe from the Resource Kit, but it does not start my progr

Getting description from Eventlog

2001-03-14 Thread stanley . g . martin
I have some Events in my Eventlog that are Informational entries but don't print out the description. Example: Source => OtMan4 Length => 64 EventType => 4 Message => ClosingRecordNumber => 0 RecordNumber => 3231 Strings => * Data => **f***s`*X***h*** ***

RE: Finding Logged in users

2001-03-14 Thread Bellenger, Bruno (Paris)
Hi Chuck, You're right. It's probably best to do as you suggest as this will handle all prefixed backslashes, regardless of the number entered (knowing Perl, someone could try 'computername' as an argument) _ Bruno Bellenger -O

RE: Finding Logged in users

2001-03-14 Thread Chuck Lawhorn
If you don't want to use the substr command, you could simply remove all leading backslashes as follows: $computer =~ s|^\\*||; Just my $.02, --Chuck --- "Bellenger, Bruno (Paris)" <[EMAIL PROTECTED]> wrote: > > And this will list all files open through the network on a server. > Syntax is :

RE: passwd.exe (redirect the input/output)

2001-03-14 Thread Ember Normand
Try anonymous piping: open (RESULTS, "passwd.exe thepassword |"); $encrypted = ; close RESULTS; Good luck, Ember -Original Message- From: PerlWin32 [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 7:15 PM To: [EMAIL PROTECTED] Subject: passwd.exe (redirect the input/output) Hi

RE: Finding Logged in users

2001-03-14 Thread Bellenger, Bruno (Paris)
And this will list all files open through the network on a server. Syntax is : Perl scriptname.pl computername or Perl scriptname.pl \\computername # NetFileEnum($server, $basepath, $user, \@info) # Supplies information about some or all open files on server \\$computer. # Specify tar

RE: Finding Logged in users

2001-03-14 Thread Bellenger, Bruno (Paris)
This will list users having a network session to a server. Syntax is Perl scriptname.pl computername or Perl scriptname.pl \\computername # NetSessionEnum($server, $client, $user, \@info) # Provides information about all current sessions on server \\$computer. # Specify target comput

RE: Finding Logged in users

2001-03-14 Thread Bellenger, Bruno (Paris)
Please note, you need to be more explicit when saying "logged in users". This script actually will tell you who's INTERACTIVELY logged in, not who has a network session to the machine. In any case, the original code worked. Leave the line $computer = "$ARGV[0]" ; then provide the c

Re: Finding Logged in users

2001-03-14 Thread Chuck Lawhorn
You are setting $computer to "//rwaldock". You rpobably want two backslashes in front of the name instead of two forward slashes. Your code is set to strip out leading backslashes, but you don't have any in your computer name. HTH, --Chuck --- [EMAIL PROTECTED] wrote: > Hi, > > I have today

Finding Logged in users

2001-03-14 Thread Roy . Waldock
Hi, I have today seen reference to and have installed the lanman module. I cant find any documentation for it. I would like to use it to find the logged in users to our development server at http://xxx.xxx.xxx I am using NT and are connected to it via our own intranet. I have tried the follow