RE: Technical Arguments for using Perl in a web environment...

2003-01-23 Thread Story, Lenny
Maybe im an idiot,  but why are people complaining about CGI and PERL when
CGI is just an interface mechanism ?

Does mod_perl execute perl code embedded in webpages, like php, etc ?
If so, whats the issue ?

 I'll take a first guess and say its just buzzword bingo..

*shrug*

Thanks,
-Lenny

-Original Message-
From: Scot Robnett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: RE: Technical Arguments for using Perl in a web environment...


Can I be the first to ask this not to become a M$ lovers vs. M$ haters
sparring match? Let's all help each other here. Thanks and I'll shut up now.
:)

-
Scot Robnett
inSite Internet Solutions
[EMAIL PROTECTED]



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Tillman, James
Sent: Thursday, January 23, 2003 9:39 AM
To: 'Herbold, John W.'; [EMAIL PROTECTED]
Subject: RE: Technical Arguments for using Perl in a web environment...


 -Original Message-
 From: Herbold, John W. [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 23, 2003 10:32 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Technical Arguments for using Perl in a web
 environment...


[...]
 I just
 believe that any thing MS makes is faster ;-)

???  You've got to be kidding, right?

jpt
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



#defines ? or Constant Data in perl ?

2002-09-23 Thread Story, Lenny

Greetings,

Is there some such way to define a constant, or #define style
variable in perl ? 

I  typically have the need to define data which is just to 
eliminate the need for magic numbers etc.

thus far i have just defined variables such as :

my $WELCOME_MSG = Hello!;
print $WELCOME_MSG;


Which does work, but is not really what i want...

Any ideas anyone ?

Thanks,
Lenny


-Lenny
[EMAIL PROTECTED]



___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: NET::Telnet

2002-09-17 Thread Story, Lenny

Greetings,

I too had alot of trouble getting Net::Telnet to work properly,
it seemed to continuously stop for no apparent reason, with very 
poor performance. As well as not being able to make it non-block
on win32.

I had to eventually write a direct TCP client to get a proper
level of performance..etc..

Just my .02,
-Lenny 

-Original Message-
From: Moulder, Glen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 1:42 PM
To: perl-win32-users
Subject: FW: NET::Telnet



Carter, what you're saying may work on Unix systems, but after 2 weeks of
hair-pulling last year, I gave up trying to use Net::Telnet on legacy Univac
and Dec systems.  The module just couldn't handle the odd terminal emulation
escape sequences that were being fed to it (especially on the Univac) and I
was unable to reliably establish and maintain terminal sessions on those
machines.  Finally had to brute force ftp files up to those boxes without
being able to do the file existence/status checking planned for in my
original design.  Net::Telnet users beware.

Glen


-Original Message-
From: Carter Thompson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, September 17, 2002 1:22 PM
To: Jitendra Soam; [EMAIL PROTECTED]
Subject: RE: NET::Telnet





The Prompt is a regular expression that matches the
commandline prompt from the remote shell.  That means
you'll want to match the prompt for the user you are
logging in as.  If I log into one of my remote windows
machines through a telnet server and I see I have a 
prompt like so, C:/ I'll need to match that within
my code as prompt.

If the prompt isn't matched in the time specified in 
Timeout then the script will either return false or
die based on what Errmode is set to, return or die respectively.  

NET::Telnet Defaults:
Timeout = 10
Host = localhost
Errmode = die
Prompt = /[\$%#]$/  # matches most unix shells.
Port = 23

This is how you could establish a connection with a 
windows machine with NET::Telnet (Untested).

use strict;

my $TIMEOUT = 30;
my $PROMPT = C:/; 
my $HOST = foobar.foo.com;
my $USER = Bob;
my $PASS = password;

$telnet = Net::Telnet-new( Timeout = $TIMEOUT,
Prompt  = $PROMPT,
Host= $HOST,
Errmode = return);

$telnet-login($USER, $PASS);

# Test here for success if using return.
my $msg = $telnet-errmsg();
if ($msg) {
print $msg\n;
$telnet-close;
# do whatever you want here.
}



Hope this helps.

Cheers,

Carter.


 -Original Message-
 From: Jitendra Soam [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 7:39 AM
 To: [EMAIL PROTECTED]
 Subject: RE: NET::Telnet
 
 
 
 Thanks.
 
 But the what should be used as prompt?
 
 
 
 -Original Message-
 From: Thomas R Wyant_III [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 17, 2002 7:01 PM
 To: [EMAIL PROTECTED]
 Subject: Re: NET::Telnet
 
 
 
 Jitendra Soam [EMAIL PROTECTED] wrote:
 
  Is it possible to use Net::Telnet module to telnet into Windows 
  machine running Microsoft Telnet Service..
 
 In theory, yes, _provided_ the Telnet service is set up to do 
 username/password authentication. This is not the default.
 
 In practice, there appear to be significant problems figuring 
out what 
 you should tell it the prompt string is, because Microsoft embeds
 all sorts
 of
 escape sequences in it.
 
  and start Any program like Notepad on target machine?
 
 In theory, yes. In practice, of course, Notepad displays on 
the target 
 machine's desktop, which probably does you as the owner of the telnet 
 link no good at all.
 
 Tom Wyant
 
 
 
 This communication is for use by the intended recipient and contains
 information that may be privileged, confidential or copyrighted under
 applicable law.  If you are not the intended recipient, you are hereby
 formally notified that any use, copying or distribution of 
 this e-mail,
 in whole or in part, is strictly prohibited.  Please notify the sender
 by return e-mail and delete this e-mail from your system.  Unless
 explicitly and conspicuously designated as E-Contract Intended,
 this e-mail does not constitute a contract offer, a contract 
 amendment,
 or an acceptance of a contract offer.  This e-mail does not constitute
 a consent to the use of sender's contact information for direct
 marketing
 purposes or for transfers of data to third parties.
 
  Francais Deutsch Italiano  Espanol  Portuges  Japanese
 Chinese  Korean
 
 http://www.DuPont.com/corp/email_disclaimer.html
 
 
 ___
 Perl-Win32-Users mailing list 
 [EMAIL PROTECTED]
 To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
 ___
 Perl-Win32-Users mailing list 
 [EMAIL PROTECTED]
 To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
 
___
Perl-Win32-Users mailing list 

RE: Changing the Windows Background NT 4.0

2002-08-01 Thread Story, Lenny

- Actually im running it manually at the moment...
  but i want to be running it automatically.

- I  have admin privs on this machine..

- The registry is not getting updated. My guess
is that the SystemInfo call is failing...

-Lenny

-Original Message-
From: Fernando Madruga [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: Changing the Windows Background NT 4.0



 I am trying to automatically change the background on a Windows NT4.0
machine, The code im using is below, it seems to execute fine, however,
the background does not change. 
 Does any one have any ideas regarding this ?

Just this: are you running the script with a logged on user, or running
it automatically from some scheduler?
Also, did you check the registry to find out if it worked?
(You could probably just do that, i.e., change the proper key in the
registry...)

HTH,
  Fernando Madruga

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: Changing the Windows Background NT 4.0

2002-08-01 Thread Story, Lenny

It seems that If the image type is .BMP it works fine.
But if its a .JPG it doesn't.

Joy.

-Lenny

-Original Message-
From: Story, Lenny [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:54 PM
To: Fernando Madruga; [EMAIL PROTECTED]
Subject: RE: Changing the Windows Background NT 4.0


- Actually im running it manually at the moment...
  but i want to be running it automatically.

- I  have admin privs on this machine..

- The registry is not getting updated. My guess
is that the SystemInfo call is failing...

-Lenny

-Original Message-
From: Fernando Madruga [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: RE: Changing the Windows Background NT 4.0



 I am trying to automatically change the background on a Windows NT4.0
machine, The code im using is below, it seems to execute fine, however,
the background does not change. 
 Does any one have any ideas regarding this ?

Just this: are you running the script with a logged on user, or running
it automatically from some scheduler?
Also, did you check the registry to find out if it worked?
(You could probably just do that, i.e., change the proper key in the
registry...)

HTH,
  Fernando Madruga

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



RE: Changing the Windows Background NT 4.0

2002-08-01 Thread Story, Lenny

Actually, Active Desktop is on.

I can set it manually, to a JPG just not programatically.

-Lenny

-Original Message-
From: Adam Frielink [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 2:36 PM
To: Story, Lenny; [EMAIL PROTECTED]
Subject: RE: Changing the Windows Background NT 4.0


 
 
 It seems that If the image type is .BMP it works fine.
 But if its a .JPG it doesn't.
 
 Joy.

The JPG would work if you turn on the 'Active Desktop'
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Changing the Windows Background NT 4.0

2002-08-01 Thread Story, Lenny


Greetings,

Well, its working, but i had to use Image::Magick to convert the
.jpg to a .bmp.

Thanks everyone!

-Lenny
[EMAIL PROTECTED]



___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



Win32 and Non-Blocking Sockets.

2002-05-14 Thread Story, Lenny


Greetings,

Has anyone here figured out how to get perl to set the
windows sockets to non-blocking ?

I know that WinSock supports it...as i have done extensive 
sockets code using C++. I just cannot find the equivalent
methods in perl.

Setting the socket to NON-Blockin in C/C++ i would do : 

ulTemp = 1;
iResult = ioctlsocket(sSocket, FIONBIO, ulTemp);

So anyone know the equivalent ?  --OR-- Is there a way to 
get the REAL socket number from the Socket in Perl ?

Perhaps i can use Win32::API to set it directly..


-Lenny
[EMAIL PROTECTED]



___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs