Re: Help with executing a command on remote machine using Net::Telnet

2001-07-01 Thread Andy Jennings
As specified in the Net::Telnet docs, your prompt should be a match string. Try something like:- prompt =>'/c:.*?>/' #untested on a full session but does not throw an error when called as below Andy - Original Message - From: "Satish Vadlamani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

Re: Regex (and substitution) help

2001-06-18 Thread Andy Jennings
Denis I think this will do the deal for you:- $tagger = "See SAY_PLEASE_TXT and SAY_HELLO_TXT."; $tagger =~ s/\b([A-Z]+_[A-Z_]+)\b/^$1^/g; print "$tagger\n"; Andy - Original Message - From: "Denis Pleic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 5:49 PM

Re: Win32::ODBC with Access2000

2001-06-12 Thread Andy Jennings
Ronnie Absolutely, Yes - 2000 and 97 use different versions of the Jet database engine and hence a different ODBC driver, although the later driver is meant to be, somewhat, backward compatible. There is no way, that I know of, to have the same driver accessing both types of file successfully wit

Re: [An open complaint (was RE: An Index of Incivility in the Perl Com munity )] [more rant, please ignore]

2001-06-12 Thread Andy Jennings
Chris I laughed my ass off when I read this about the 'young lady' syndrome, because it's just so true. I was just thinking the same thing the other week! :-) Too darn funny. Just think how many more detailed, patient and considerate answers they could get if they included a site URL in th

Tk and fork()

2001-06-01 Thread Andy Jennings
Stupid question of the week:- :-) Anyone had any problems (or success) writing a forking Tk script. I get loads of 'unable to release shared object' errors in Tk.pm (line 96 if memory serves me right) when trying to deal with forking and everything eventually crashes and burns on me - my inclina

Re: interfacing with Eudora

2001-05-29 Thread Andy Jennings
Mike You don't even really need Eudora for this. It's pretty simple to have your list of addresses in one text file, your message body in another and then a script sucks them in and fires out mails to the mail server you specify. Because a mail sending transaction is fairly linear and straightfo

Fw: need advice

2001-05-28 Thread Andy Jennings
> David > > You could certainly fork off the transfer process which reads the data. You > will then need an open pipe between the parent and child so the child can > pass back the number of bytes read and any other info, so that you can > update the progress bar in the parent. If the user hits '

Re: fork error??

2001-05-28 Thread Andy Jennings
then you may have an OS memory paging problem. hth - a bit anyway. Andy - Original Message - From: "mmollenkopf" <[EMAIL PROTECTED]> To: "Andy Jennings" <[EMAIL PROTECTED]>; "Perl Win32" <[EMAIL PROTECTED]> Sent: Sunday, May 27, 2001

Re: need advice

2001-05-28 Thread Andy Jennings
David You could certainly fork off the transfer process which reads the data. You will then need an open pipe between the parent and child so the child can pass back the number of bytes read and any other info, so that you can update the progress bar in the parent. If the user hits 'cancel' then

Re: fork error??

2001-05-28 Thread Andy Jennings
Alan Probably at least a snippet of code around the fork would be good. Also Perl version/build and OS. Andy - Original Message - From: "mmollenkopf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 26, 2001 10:01 PM Subject: fork error?? > I keep running into an error

Re: Server Side Include Question

2001-05-14 Thread Andy Jennings
The only way I think you may be able to do this would be through frames and you would need some persistent variables for the Perl script - maybe a hidden text input var for where you are in the list. Andy - Original Message - From: "steve silvers" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

Re: substitution on a file

2001-05-03 Thread Andy Jennings
Add a check for a word boundary to the start and finish of the old word $_ =~ s/\b$oldWord\b/$newWord/g hth Andy - Original Message - From: "Rex Posadas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 11:42 AM Subject: substitution on a file > Hi, > > I'm tr

Re: Return codes ??

2001-04-19 Thread Andy Jennings
Title: PSCI_1 Paula   Most likely because the command returns a two byte int and the return code is only setting the high byte bits with all the low byte bits unset.   Dividing by 256 is the equivalent of 8 bitwise shifts to place all the set bits in the low byte.   Andy   -

Re: "Bizarre SvTYPE [157]" error when implementing fork() or Simple::proc

2001-04-19 Thread Andy Jennings
Jeremy When you fork, the pid assigned to the child is a visible non-zero value in the parent but to the child it is zero. Therefore to execute code that is to be run in the child process you must check the value returned by fork() is 0. So the code you want to execute in the child process goes

Re: open file

2001-04-18 Thread Andy Jennings
Could you post the complete and exact error message plz together with the code 3 or 4 lines either side of the error line #. It sounds like more of a permissions prob but we need to know what you are trying to do. Andy - Original Message - From: "eo_pereira" <[EMAIL PROTECTED]> To: <[EM

Fw: Whoops! CLARIFICATION: Reading a file from point A to B

2001-04-16 Thread Andy Jennings
Gary To grab the lines between tags and include the tags then you can use code like the following:- open(HTM, "file_to_scan.txt"); @lines = ; close(HTM); $longline = join "\n", @lines; $longline =~ s/()//si; print $1; $result = $1; $result now contains the first match in the file or

Re: Scan help

2001-04-16 Thread Andy Jennings
Bill It looks ugly, I know, but it works... $myvariable =~ s/\\rmcnt\\public/rmcntpublic /; Add the g option if there are multiple instances of the string to change in the variable Andy - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAI

Re: Orphan Process While Using Textpad

2001-04-08 Thread Andy Jennings
James I don't seem to have a problem with this on Textpad 4.3.1 32-bit version. The settings I use are:- Command: C:\Perl\bin\Perl.exe (or other location of Perl.exe) Parameters: d:\scripts\intest.pl (or location of script to run) and have the 'DOS command' box checked. HTH Andy - Origina

Re: Subject: Detecting multiple instances

2001-04-08 Thread Andy Jennings
Not sure about 'net info' but generally the 'net' group of commands deal with services, networking and users - a list of currently running services can be obtained by issuing 'net start' for instance. To get a list of running processes you can use tlist.exe which I believe is part of the NT resou

Fw: how to represent "any character" (incl. \n) in regexp?

2001-04-07 Thread Andy Jennings
- Original Message - From: "Andy Jennings" <[EMAIL PROTECTED]> To: "jose quesada" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, April 07, 2001 11:43 PM Subject: Re: how to represent "any character" (incl. \n) in regexp? &g

Re: how to represent "any character" (incl. \n) in regexp?

2001-04-07 Thread Andy Jennings
Try (.|\n) instead. Andy - Original Message - From: "Bennett Haselton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 07, 2001 11:08 PM Subject: how to represent "any character" (incl. \n) in regexp? > Since according to p. 25 of "Programming Perl" by Wall, "." stand

RE: Please Help!

2001-01-24 Thread Andy Jennings
Just a couple of things to add to what went before... The best way to check your code when first written is to run with the -w switch and/or 'use strict'. perl -w myscript.pl Activestate's builds of Perl will add file associations for .pl and modify the search path if this is selected durin