Re: Perl <-> Expect

2004-07-25 Thread Ramprasad A Padmanabhan
I dont think the ssh option is always available to everyone. Most times these hosts are non linux machines, so they dont come with ssh servers by default. Now If you dont have root access , you cant install ssh servers. But good old telnet is always available. ( I am not bothered about someon

perl-DBD-mysql for perl 5.8.1

2004-07-25 Thread Anish Mehta
Hello! Can someone tell me which perl-DBD-mysql version is compatible with perl 5.8.1. I have tried with some rpms which requires 5.6.1 and copies the files in that directory. If i use it with 5.8.1 then it no more works. Ur suggestions are welcome. Thanks in advance. Regards, A+ -- To unsubscri

Regular Expressions - multiplelines

2004-07-25 Thread Roman Hanousek
Hi I have a txt file that contains the following info: Text start here $/Dev/something/something.com/blah1: default.asp userExc 26/07/04 1:42p [TEST-DEV]F:\content\blah\wwwroot\blah1 $/Dev/something/something.com/something: test.asp

RE: New Line / Chomp Query

2004-07-25 Thread David Clarke
Codes goes along this way : $current_record = $_; if (substr($current_record, 0, 6) eq 'GRSUMC') { # Remove new line marker chomp($current_record = $current_record); # Attach run no to end of record $current_record = $current_record . $run_no . "\n"; }

Re: Multiple Parameters

2004-07-25 Thread James Edward Gray II
On Jul 25, 2004, at 12:55 PM, <[EMAIL PROTECTED]> wrote: Another question, so far i have this script: #!/usr/bin/perl use strict; use warnings; The above two lines ask Perl to hold you to the laws of good programming. In return, you'll get better error messages and warnings about things that mig

Re: Trouble with PERL and HTML

2004-07-25 Thread renzo rizzato
Alle 20:24, domenica 25 luglio 2004, David Dorward ha scritto: > On Sun, 2004-07-25 at 19:17, renzo rizzato wrote: > > The requested URL /cgi-bin/index.html was not found on this server. > > > > For a reason I cannot understand, the system keeps to stay in the cgi-bin > > directory, why? > > You ha

Re: Trouble with PERL and HTML

2004-07-25 Thread Gunnar Hjalmarsson
Renzo Rizzato wrote: Hallo to all from a newby, I am facing the following problem, in a HTML document (www.primocenter.net) I put the intruction, in the guest.html: , when I press submit, effectively, the program opens the file /cgi-bin/mail.it, but when i try, from the last, to the home page, I ge

Re: Trouble with PERL and HTML

2004-07-25 Thread David Dorward
On Sun, 2004-07-25 at 19:17, renzo rizzato wrote: > The requested URL /cgi-bin/index.html was not found on this server. > For a reason I cannot understand, the system keeps to stay in the cgi-bin > directory, why? You haven't shown any code, so I'm going to make a wild guess. You have a link t

Re: Get .exe or .zip file from the server via perl script

2004-07-25 Thread Gunnar Hjalmarsson
Nicolay A. Vasiliev wrote: I don't know anything how to download the file via perl script. This code, which I copied from a program of mine, may get you started: open FILE, "< $dir/$file" or die "Can't open ... $!"; binmode FILE; binmode STDOUT; print "Content-Type: application/zip\

Trouble with PERL and HTML

2004-07-25 Thread renzo rizzato
Hallo to all from a newby, I am facing the following problem, in a HTML document (www.primocenter.net) I put the intruction, in the guest.html: , when I press submit, effectively, the program opens the file /cgi-bin/mail.it, but when i try, from the last, to the home page, I get the message:

[SOLUTION] how can i generate 10 unique (non repeating) numbers

2004-07-25 Thread Absolut Newbie
greets to Peter Scott for pointing to Randal Schwartz's answer on C.L.P.M. http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=86hds1fa6n.fsf%40blue.stonehenge.com [SOLUTION] use List::Util from CPAN http://search.cpan.org/~gbarr/Scalar-List-Utils-1.14/lib/List/Util.pm basically you use the

Get .exe or .zip file from the server via perl script

2004-07-25 Thread Nicolay A. Vasiliev
Hello, there! I need to implement the thing in the subject described. Conceptually there are two steps: 1) logging into the system at some web-server; 2) getting some binary (zip or exe) and putthing this at my web-server. I imagine approximately how can I implement the first step. But I don't kno

RE: Multiple Parameters

2004-07-25 Thread mafioso1823
Another question, so far i have this script: #!/usr/bin/perl use IO::File; die "Usage: script OLD_FILE, SEARCH, REPLACE, NEW_FILE\n" unless @ARGV == 4; my($old_file, $search, $replace, $new_file) = @ARGV; $fh = new IO::File "> $new_file"; if (defined $fh) { while(

RE: Errors installing modules on Solaris 9

2004-07-25 Thread JR Miller
> - Original Message - > From: "JR Miller" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, July 25, 2004 6:28 AM > Subject: Errors installing modules on Solaris 9 > > > >>New to loading PERL modules and can't figure this one out. Running > > Solaris > >>9 with current patches

Re: Errors installing modules on Solaris 9

2004-07-25 Thread Dalton Marris
- Original Message - From: "JR Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 25, 2004 6:28 AM Subject: Errors installing modules on Solaris 9 New to loading PERL modules and can't figure this one out. Running Solaris 9 with current patches, PERL is v5.6.1 built fo

RE: Errors installing modules on Solaris 9

2004-07-25 Thread JR Miller
Yes, I am running as root. gmake and gcc are in the path, tested this before trying the install. Thanks, -JR Miller -Original Message- From: Eliezer Ramm [mailto:[EMAIL PROTECTED] Sent: Sunday, July 25, 2004 06:00 To: JR Miller Subject: Re: Errors installing modules on Solaris 9 a) ar

Re: Multiple Parameters

2004-07-25 Thread JupiterHost.Net
[EMAIL PROTECTED] wrote: Hello, I am trying to write a search and replace script that can accept multiple arguments, but i want the first argument to be the filename to read, the next one to be the string to search for, the next one to be the replacement string, and the last one to be the name of