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.
---
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
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
- 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
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
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
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
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
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
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
> I am having a Hash_Of_Arrays data structure:
> $hash1 = {
> directory1 => [ files ],
> directory2 => [ files ],
> directory1_subdirectory1=> [ files]
> };
>
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
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
Title: Hash_Of_Arrays Question
First, the hash assignment should be
%hash1 = {
directory1
=> [ files ],
directory2
=> [ files ],
directory1_subdirectory1=> [ files]
Title: Hash_Of_Arrays Question
I am having a Hash_Of_Arrays data structure:
$hash1 = {
directory1 => [ files ],
directory2 => [ files ],
directory1_subdirectory1=> [ files]
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
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
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:
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)
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
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
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
>
> 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
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)
24 matches
Mail list logo