Re: Perl versus Expect(tcl) : Specific Example

2005-02-12 Thread Owen Cook
On Sat, 12 Feb 2005, perl perl wrote: > > Question2: :-) > How do you implement the Expect script above into Perll? Are there > several modules to choose from? Here is a little admin script I run from time to time which might explain the use of Perl's expect (Yes..I know, no use ofstrict or war

Perl versus Expect(tcl) : Specific Example

2005-02-12 Thread perl perl
Hi, I'd like to narrow the previous Expect(tcl) question so that an answer can be extracted: Perl vs Expect(tcl) question again. Here is a specific Expect example: I have a release engineering build script that performs the following: Launch masterbuild.tcl (expect script) from WinNT server. Thi

Re: Accessing https pages

2005-02-12 Thread Damiannz
Bob, thank you for your reply.  I went to http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd but all it gave me was some text as follows OpenSSL glue that provides LWP https support Joshua Chamas install_ssl I have actually been on to [EMAIL PROTECTED] previously and did download the Crypt-

Re: Generating a hierarchy path

2005-02-12 Thread Jan Eden
Hi Ovid, Ovid wrote on 11.02.2005: >Hi Jan, > >Apologies in advance if any of this seems too pedantic. > I was asking for pedantic remarks. ;-) >What you are essentially looking for is SQL capable of handling tree >structures so you can pull this data in a single fetch. You can >read about this

Re: Accessing https pages

2005-02-12 Thread Bob Showalter
[EMAIL PROTECTED] wrote: I am very new to Perl - a few days. I am running Windows XP. I downloaded and installed ActivePerl to c:\perl. I also downloaded www::mechanize to make my life easier to access web pages. I wrote a perl program to access http://www.tab.co.nz (via mechanize) which works

Re: Accessing variables

2005-02-12 Thread John W. Krahn
Nils Vogels wrote: Hi there! Hello, I'm trying to create a hash of array of hashes, which seems to success with the following command: my %fileresults = { "NULL" => ( "NULL", 0, { "NULL" => ( "", 0 ) } ) }; What you have there is a hash with one key and no value. If you had had warnings enable

Most efficent way to sleep until ...

2005-02-12 Thread johnny yu
Hello. I am writing a perl program that sleeps until I get a notification from through Postgres DBD then wakes up and does something. Here is how it works now: my $sleeptime = 0.10; $dbh->do("LISTEN mysignal"); while () { $listen = $dbh->func('pg_notifies'); if (ref($listen)) {

Accessing https pages

2005-02-12 Thread Damiannz
I am very new to Perl - a few days. I am running Windows XP. I downloaded and installed ActivePerl to c:\perl. I also downloaded www::mechanize to make my life easier to access web pages. I wrote a perl program to access http://www.tab.co.nz (via mechanize) which works fine but when I use th

Accessing variables

2005-02-12 Thread Nils Vogels
Hi there! I'm trying to create a hash of array of hashes, which seems to success with the following command: my %fileresults = { "NULL" => ( "NULL", 0, { "NULL" => ( "", 0 ) } ) }; The complete structure is as follows: fileresults = hash1 key = string value =

Create html pages w/ images and text

2005-02-12 Thread Brian Volk
Hi All, I have two directories, one directory contains 20 text files and the other directory contains 15 jpeg's. I need to create an html page for each text file and insert the image if one exist for that text file. BTW, the file names correspond to one another. For example, 12345.txt / 123

Re: configuring apache

2005-02-12 Thread Wiggins d'Anconia
vishwas bhakit wrote: Dear Sirs, I don't know whether i should ask this query here or not. Because its not perl query its related apache configuration. But if I am right plz help me. I don't have any knowledge over configuring apache for web sites. First time I had tried to configure one web

Re: Compare file modification time

2005-02-12 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: How do I best compare mtime of several files. I have a script for making daily backups into a given directory. Now I want to modify it to delete old backups if the total exceed cetain number. The idea was to compare the mtime of all file to figure out old files to delete

Re: Re: Perl versus EXPECT(tcl)

2005-02-12 Thread geringer2
Hi Xiaofang: Because expect waits response from unix (or linux) - it 'EXPECTS' a response, it won't work on xp. Expect is more like a tcl script than perl and I don't think there's a tcl script either for xp (or dos) - I may be wrong. Hope this helps a little. Ron - Original Message -

RE: Re: Perl versus EXPECT(tcl)

2005-02-12 Thread Gomez, Juan
Hi Xiaofang I don’t think is posible you see pty's are only for unix That’s what I remember and that’s why it crash Let me get some more info and I send it to you Have a good day -Original Message- From: Xiaofang Zhou [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005

Re: Software to understand Scale.

2005-02-12 Thread Diogo Nunes de Oliveira
Ok... now I've got some more information... The scale is produced by a co. called Toledo. This scale is connected via serial port to the pc and it uses a protocol called P03 (proprietary). Ok... about the protocol, you don't have to worry about it. What i figure now is how to get the string transmi

Re: Re: Perl versus EXPECT(tcl)

2005-02-12 Thread Bob Showalter
Xiaofang Zhou wrote: Hi, Bob, Sounds the expert.pm is cool. But when I try to install the pre-required io::pty, I got a fatal error. Is it possible to install io::tty and expert on xp? No. ptys are a Unix only thing. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

configuring apache

2005-02-12 Thread vishwas bhakit
Dear Sirs, I don't know whether i should ask this query here or not. Because its not perl query its related apache configuration. But if I am right plz help me. I don't have any knowledge over configuring apache for web sites. First time I had tried to configure one web site on linux server i

Re: Problem with script requiring valid referrer

2005-02-12 Thread Randal L. Schwartz
> "Chris" == Chris Schults <[EMAIL PROTECTED]> writes: Chris> Hey all. On our website we have several forms (send a letter, Chris> ask a question, etc) that some of our visitors seem to have Chris> problems with. These forms require the referring page to be Chris> from a Grist Magazine domain.