Not able to get current user logged into box

2003-01-09 Thread Royer, Robby E \(Compaq\)
I am working on developing a script that will go out to a list of computers that are on the network and determine who is currently logged onto the workstations, these workstations are both NT 4.0 and 2000, the below script seems to work with the 2000 workstations but not the NT 4.0 boxes. Can someo

Re: Not able to get current user logged into box

2003-01-09 Thread Paul O'Russa
Try using the Win32::NetAdmin module's LoggedOnUsers function. I haven't tried it myself, but it's supposed to do what you describe. Paul >>> "Royer, Robby E (Compaq)" <[EMAIL PROTECTED]> 1/9/2003 1:53:21 PM >>> I am working on developing a script that will go out to a list of computers that ar

RE: Not able to get current user logged into box

2003-01-09 Thread Hawley, Eric
-Original Message- From: Royer, Robby E (Compaq) [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 09, 2003 4:53 PM To: 'Roland Butler'; [EMAIL PROTECTED] Subject: Not able to get current user logged into box I am working on developing a script that will go out to a list of computers tha

Re: ^@ and ^M

2003-01-09 Thread $Bill Luebkert
Matthew Walkup wrote: > > Paul, > > while (my $input = ) > { > next if $input =~ /\*/; # Removes the * seperator > $input =~ s/\^M//ig; > $input =~ s/\^\@//g; > print OUTPUT $input; > > } > > - OR - > > while () > { > next if $_ =~ /\*/; # Removes