RE: Finding the OS type

2002-11-18 Thread John Drabinowicz
Title: RE: Finding the OS type Hi Bill, Thanks, that's exactly what I needed, as I am specifying cygwin with inetd running for the Windoze boxes and the Unix derivatives already have stuff going, this. on the windoze boxes I get Cygwin_NT-5.0 It works out great. Avery Happy John D. ---

Re: Finding the OS type

2002-11-18 Thread $Bill Luebkert
John Drabinowicz wrote: Hi Gang, so far I have been programming for Win32 (Cygwin) with Perl... I need to rsh to other machines such as Linux, Solaris, and HP/UX as well as Win32. Because Win32 is in the mix, I need to find out what type of OS I am connecting to in order to use the corrrect c

RE: Searching a binary file for a specific sequence of hex values?

2002-11-18 Thread Carl Jolley
On Mon, 18 Nov 2002, Peter Guzis wrote: > You're right on the first issue. I need to slow down in my rush to be first > reply :P > > The search string will NOT be truncated because of these lines: > > my $search_length = length ($search); > my $chunk_size = $search_length > CHUNK_SIZE ? $sear

Re: Net::SFTP

2002-11-18 Thread Sisyphus
- Original Message - From: "Scott Scecina" <[EMAIL PROTECTED]> > > Actually, I'm responsible for Net::SSH::W32Perl. I have binaries of it, and > the other required modules (if not available through Activestate) at > http://www.soulcage.net/ppds. > > - Scott > Do you know if it is then a

RE: Finding the OS type

2002-11-18 Thread Edwards, Mark \(CXO\)
Title: Message This will return the os and if it's windows will give you the version.   $os=($^O eq 'MSWin32')?`ver`:$^O;    -Original Message-From: Vladimir Hernandez [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 13:30 PMTo: Perl-Win32-UsersSubject: RE: Fi

RE: Finding the OS type

2002-11-18 Thread Scott Purcell
Title: Finding the OS type You could try something like this:       local $l_arch  = $ENV{'PROCESSOR_ARCHITECTURE'};       if ($l_arch =~ /x86/ig) {      return "intel";    } else { #probably some unix flavor. return &getUnixType    }   sub getUnixType {     my $osname

RE: Finding the OS type

2002-11-18 Thread Vladimir Hernandez
Title: Finding the OS type   ... But I think he wants to know the OS of the machine he's connecting TO, not the one of the machine he's running the script in, which is what you'll get with this variable, if i'm not mistaken. I don't have an answer to his question tough, and would like to kno

Re: Finding the OS type

2002-11-18 Thread Chris
John Drabinowicz wrote: Hi Gang, so far I have been programming for Win32 (Cygwin) with Perl... I need to rsh to other machines such as Linux, Solaris, and HP/UX as well as Win32. Because Win32 is in the mix, I need to find out what type of OS I am connecting to in order to use the corrrect c

Re: Finding the OS type

2002-11-18 Thread Prashanth
Title: Finding the OS type The $^O variable contains an indication of the name of the operating system (not its release number) that your perl binary was built for. - Original Message - From: John Drabinowicz To: Perl-Win32-Users Sent: Tuesday, November 19, 2002 1:0

Finding the OS type

2002-11-18 Thread John Drabinowicz
Title: Finding the OS type Hi Gang, so far I have been programming for Win32 (Cygwin) with Perl... I need to rsh to other machines such as Linux, Solaris, and HP/UX as well as Win32. Because Win32 is in the mix, I need to find out what type of OS I am connecting to in order to use the co

Re: Hash_Of_Arrays Question

2002-11-18 Thread shurst
> I am having a Hash_Of_Arrays data structure: > $hash1 = { > directory1 => [ files ], > directory2 => [ files ], > directory1_subdirectory1=> [ files] > }; >

finding files!

2002-11-18 Thread ananthans
hi..   Iam trying to grep a pattern from the file's which are available in different folder. Iam passing those file name's to script through @ARGV   Can anyone tell me how to do this !       c:\0203\850235\850235.txt c:\0204\850266\850266.txt     Regards ananthans      

RE: Searching a binary file for a specific sequence of hex values?

2002-11-18 Thread Peter Guzis
You're right on the first issue. I need to slow down in my rush to be first reply :P The search string will NOT be truncated because of these lines: my $search_length = length ($search); my $chunk_size = $search_length > CHUNK_SIZE ? $search_length : CHUNK_SIZE; Peter Guzis Web Administrato

RE: Hash_Of_Arrays Question

2002-11-18 Thread Peter Eisengrein
Title: Hash_Of_Arrays Question First, the hash assignment should be   %hash1  = {             directory1         => [ files ],             directory2         => [ files ],             directory1_subdirectory1=> [ files]

Hash_Of_Arrays Question

2002-11-18 Thread Arul, Rex
Title: Hash_Of_Arrays Question I am having a Hash_Of_Arrays data structure: $hash1  = {             directory1         => [ files ],             directory2         => [ files ],             directory1_subdirectory1=> [ files]

Re: k-means script in perl

2002-11-18 Thread Cassell . David
A Santillan Iturres <[EMAIL PROTECTED]> wrote: > Does anybody know if there is some clustering k-means script in perl > available on the web? Why would you want to do this in Perl? There are plenty of free stat packages that can do this *correctly*, with the right statistical tests and diagnosti

Re: timed-out waiting for command prompt

2002-11-18 Thread lgbarr
Hummm I believe you might have to set your prompt to whatever the actual prompt is on the equipment you're telnet'ing to. cheers, /LG

RE: what does exit(n) give you

2002-11-18 Thread Gould, Kevin
I believe the proper usage for "if errorlevel" is If errorlevel 3 echo yes You only test equivalence when evaluating it as a variable. Unless it works both ways now. -Original Message- From: Edwards, Mark (CXO) [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 8:17 AM To:

RE: what does exit(n) give you

2002-11-18 Thread Edwards, Mark \(CXO\)
The last line of my previous post should have been "# Doesn't echo yes". Sorry to make a confusing Microsoft thing more confusing. -Original Message- From: Edwards, Mark (CXO) Sent: Monday, November 18, 2002 7:10 AM To: Peter Guzis; Perl Win32 Users (E-mail) Subject: RE: what does exit(n)

RE: Bounced Mail?

2002-11-18 Thread Ricci, Mark
Yes, I received about 10 of them this weekend. It appears the persons mailbox is full. Mark -Original Message- From: Jack [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 16, 2002 2:07 AM To: Perl-Win32-Users Subject: Bounced Mail? Is anyone else getting "ReturnedMail" from a : <[E

RE: what does exit(n) give you

2002-11-18 Thread Edwards, Mark \(CXO\)
Be careful how you use errorlevel in the DOS world. You have to think of the errorlevel as a fence. If the fence is 4 feet high any you can jump 2 feet, your going to hit the fence. In other words, if the errorlevel is 4, it is also 3, 2, 1, and 0. The difference is whether you use "if errorlev

RE: Daemon Status

2002-11-18 Thread Mundell, R. \(Ronald\)
I need to monitor an existing daemon. I do not have the luxury to have access to the daemon source.   Ronald Mundell Nedcor BG3 881-3751(011) 083407   -Original Message- From: Martin Moss [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 03:05 To: Mundell, R. (Rona

RE: Net::SFTP

2002-11-18 Thread Scott Scecina
> > I haven't built it, so I can't speak with any authority, but I gather that > you want Net::SSH::W32Perl, rather than Net::SSH::Perl. (You may already > have the W32 version - I would expect that to be the one that AS > provides.) > > If you download the Net::SSH::W32Perl distro from cpan, you'l

Re: Daemon Status

2002-11-18 Thread Martin Moss
Are you able to write the daemon as well? Or are you talking about writing a perl script to monitor an already existing daemon?   You really need to give out more details to allow us to give you an answer,   Regards   Marty - Original Message - From: Mundell, R. (Ronald)