Re: Apache Logs

2003-10-03 Thread Randal L. Schwartz
Mike == Mike Blezien [EMAIL PROTECTED] writes: Mike I was wondering if someone knows of any Perl Modules that designed to Mike read and process the various types of apache access_log files like Mike common, combined..etc ?? You mean, besides Apache::ParseLog, which I immediately saw on the

Re: Apache Logs

2003-10-03 Thread Mike Blezien
Randal, yes, I was finally able to find it after I was able to connect to the cpan search web site. seems sometimes the site is not accessiable. appreciate the info. Micaklo Randal L. Schwartz wrote: Mike == Mike Blezien [EMAIL PROTECTED] writes: Mike I was wondering if someone knows of any

use GD::Graph::bars

2003-10-03 Thread A L
Thanks for helping me on my previous question; I was able to get it afterwards. I have another question. I am trying to draw a graph. First, I have created @1, @2, @3 within html. This prints out 3 columns with values of each array on the array like below on a browser after calculation: @X

cgi mail script anyone?

2003-10-03 Thread perl
I need to send a mail from the cgi. It must be able to have a reply or sender as someone different from the local web owner (apache). My configuration: redhat 9/qmail/vpopmail The example below will be typically what I want: To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: hello support

Re: cgi mail script anyone?

2003-10-03 Thread zsdc
[EMAIL PROTECTED] wrote: I need to send a mail from the cgi. It must be able to have a reply or sender as someone different from the local web owner (apache). See http://search.cpan.org/modlist/Mail_and_Usenet_News/Mail -- ZSDC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: cgi mail script anyone?

2003-10-03 Thread perl
I'm just trying to send mail from a programming script NOT a real client. For example, a monitor script calculating the disk storage and sending a report/alert via the perl program. I really don't want to add more library or module than necessary. So if you guys can detect something wrong with

Re: easiest `cat` in perl

2003-10-03 Thread Bryan Harris
use File::Copy; copy header.incl, \*STDOUT; I like this, it's very clean. Unfortunately I'm having trouble using it in a cgi script... ** #!/usr/bin/perl -w use File::Copy; print Content-type: text/plain\n\n; copy header.incl, \*STDOUT; print More stuff

Re: Validate String w/required period

2003-10-03 Thread Rob Dixon
[EMAIL PROTECTED] wrote: I'm trying to validate if a string contains \w and required atleas one period (.) By \w do you mean just whitespace or '\\w'? This one check but does not require a period. Can someone change it please? sub isValidDomain { return shift =~ /^[\w\.]{3,}$/ } - Do you

initialising a list of variables

2003-10-03 Thread Gary Stainburn
Hi folks I've got a query about variable initialisation. I want to initialise a list of variables to an empty string, but I'm having troubles. What's the best wat to do this? If I use the following I get: [EMAIL PROTECTED] gary]$ cat t #!/usr/bin/perl -w use strict; my $fred=$ginger='';

RE: initialising a list of variables

2003-10-03 Thread Bakken, Luke
but if I use: [EMAIL PROTECTED] gary]$ cat t #!/usr/bin/perl -w use strict; my ($fred,$ginger)=''; print fred=$fred\n; print ginger=$ginger\n; [EMAIL PROTECTED] gary]$ ./t fred= Use of uninitialized value in concatenation (.) or string at ./t line 8. ginger= [EMAIL PROTECTED]

Re: initialising a list of variables

2003-10-03 Thread James Edward Gray II
On Friday, October 3, 2003, at 09:55 AM, Gary Stainburn wrote: Hi folks Howdy. I've got a query about variable initialisation. I want to initialise a list of variables to an empty string, but I'm having troubles. What's the best wat to do this? How about: my($fred, $ginger) = ('') x 2;

RE: initialising a list of variables

2003-10-03 Thread Ed Christian
my $fred=$ginger=''; Should be: my $fred = my $ginger = ''; my ($fred,$ginger)=''; Should be: my ($fred,$ginger) = ('',''); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: initialising a list of variables

2003-10-03 Thread Gary Stainburn
On Friday 03 Oct 2003 4:05 pm, James Edward Gray II wrote: On Friday, October 3, 2003, at 09:55 AM, Gary Stainburn wrote: Hi folks Howdy. I've got a query about variable initialisation. I want to initialise a list of variables to an empty string, but I'm having troubles. What's

Re: easiest `cat` in perl

2003-10-03 Thread Bryan Harris
Ahh. A buffering issue. Your content-type: is not appearing before the header.incl. You need to add $| = 1; before the print. That's the reason I start nearly all my CGI scripts with: #!/usr/bin/perl -Tw use strict; $|++; so that I don't ever have to worry about

RE: initialising a list of variables

2003-10-03 Thread Hanson, Rob
It's open to user error quite easily You can also use this... my $x = my $y = ''; ...Or... my ($x, $y); $x = $y = ''; ...Or... init(my ($x,$y)); sub init { $_ = '' for (@_); } This last one uses the fact that $_ is an alias to the array item in @_, and @_ contains aliases to the

Re: easiest `cat` in perl

2003-10-03 Thread Dan Anderson
And what is the T in -Tw? That doesn't appear to show up in the man page... T means tainted. It's what you want to run on all code in your cgi-bin directory so that a hacker can't r00t your box. Basically it prevents your perl script from doing anything dumb. Out of curiousity, is the file

Packaging my stuff

2003-10-03 Thread Gupta, Sharad
Hi All, I am sure people must be doing that regularly. How do i package my Application to give to the customer??. Like creating packages for different platforms linux, debian, sun, windows etc. Any pointers would be greatly appreciated. Thanx, -Sharad -- To unsubscribe, e-mail: [EMAIL

RE: How to draw lines with different line width?

2003-10-03 Thread Yi Chu
Danny: My question was that I have multiple lines in a graph, and I want the first line to be thicker that the others. Setting line width set all lines to the same width, that is not what I want to do. Or I must have missed something. Is line width global to the graph or is it settable

Sort Text File

2003-10-03 Thread Dean Do
Hello, I'm rather new to PERL. How do I go about sorting a simple text file using PERL? This is what I want to accomplish. # sort /etc/passwd /etc/passwd-new # mv /etc/passwd-new /etc/passwd Thanks in advance for your help. -Dean --- Outgoing mail is certified Virus Free. Checked by AVG

How to read url with perl

2003-10-03 Thread Mercedissa1
Is there a perl module or else to help read the url below from the url location bar in the browser. This url is generated by the database vendor, so I have no control over it. I know if it was a form it would be easy, but there is no form that I generated. After a search is performed in the

Re: Sort Text File

2003-10-03 Thread James Edward Gray II
On Friday, October 3, 2003, at 01:45 PM, Dean Do wrote: Hello, Howdy. I'm rather new to PERL. How do I go about sorting a simple text file using PERL? This is what I want to accomplish. # sort /etc/passwd /etc/passwd-new # mv /etc/passwd-new /etc/passwd Any good reason not to use the above?

Re: Sort Text File

2003-10-03 Thread James Edward Gray II
If you keep your replies on the list, you'll get help from all the people much smarter than me. ;) On Friday, October 3, 2003, at 04:09 PM, Dean Do wrote: # sort /etc/passwd /etc/passwd-new # mv /etc/passwd-new /etc/passwd Any good reason not to use the above?  :)   [dean] Thanks for your

Re: Sort Text File

2003-10-03 Thread John W. Krahn
Dean Do wrote: Hello, Hello, I'm rather new to PERL. How do I go about sorting a simple text file using PERL? This is what I want to accomplish. # sort /etc/passwd /etc/passwd-new # mv /etc/passwd-new /etc/passwd Are you sure you want to modify /etc/passwd? Which field do you want

RE: Sort Text File

2003-10-03 Thread TN
Hi, Something to be aware about when modifying the password file is that it should be locked to prevent another process from modifying it at the same time. There are different conventions on different systems for doing this and they depend also on the tool for modifying the password file. For

RE: Sort Text File

2003-10-03 Thread TN
[ paragraphs correctly renumbered and one link fixed - tn ] Hi, Something to be aware about when modifying the password file is that it should be locked to prevent another process from modifying it at the same time. There are different conventions on different systems for doing this and they

editing mail spool file

2003-10-03 Thread Richard Fernandez
On occasion someone sends out a mail message with MIME attachment that we want to delete from the recipient's spool file. This happens on a Solaris box, so I'm talking about editing /var/mail/username, and there are often dozens of recipients. What we've been doing is using mutt -f to open each

RE: How to draw lines with different line width?

2003-10-03 Thread Danny Miller
It's settable per line... line_width = [1, 2, 3], 1 is the default weight. HTH, Danny -Original Message- From: Yi Chu [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:37 PM To: Danny Miller; [EMAIL PROTECTED] Subject: RE: How to draw lines with different line

RE: editing mail spool file

2003-10-03 Thread TN
Based on your delete criteria, it would be much easier to filter out unwanted mail messages on an incoming relay mailer in your DMZ. You could do other things there such as filtering out mail with MIME attachments beyond a certain size limit, or just nuking the attachemnts. You should not have to

Re: How to read url with perl

2003-10-03 Thread Bob Showalter
[EMAIL PROTECTED] wrote: Is there a perl module or else to help read the url below from the url location bar in the browser. This url is generated by the database vendor, so I have no control over it. I know if it was a form it would be easy, but there is no form that I generated. After a

Re: cgi mail script anyone?

2003-10-03 Thread perl
I can't seem to get this script working. I just want a simple code so I can send mail that can change the reply address. I could get the command line /bin/mail working with a system(/bin/mail...); but I could not change the From so it doesn't say [EMAIL PROTECTED] I don't want to open socket and

RE: cgi mail script anyone?

2003-10-03 Thread TN
/bin/mail and other Unix/Linux user mail agents preserve the From address based on your login UID. There is no way to make them lie about the From address without modifying their sources. It's possible to setup domain masquerading with sendmail or qmail. That way you could fake the @some.com

cgi mail script anyone?

2003-10-03 Thread perl
I need to send a mail from the cgi. It must be able to have a reply or sender as someone different from the local web owner (apache). My configuration: redhat 9/qmail/vpopmail The example below will be typically what I want: To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: hello support

Re: cgi mail script anyone?

2003-10-03 Thread zsdc
[EMAIL PROTECTED] wrote: I need to send a mail from the cgi. It must be able to have a reply or sender as someone different from the local web owner (apache). See http://search.cpan.org/modlist/Mail_and_Usenet_News/Mail -- ZSDC -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: cgi mail script anyone?

2003-10-03 Thread TN
Perhaps you can use sqwebmail. It supports vpopmail authentication but requires Maildir format mailboxes. Maildirs were introduced with qmail and have reliability advantages over the usual Mailbox files. If you need to convert Mailboxes to Maildirs, see the qmail docs. Sqwebmail is available

RE: cgi mail script anyone?

2003-10-03 Thread perl
I'm just trying to send mail from a programming script NOT a real client. For example, a monitor script calculating the disk storage and sending a report/alert via the perl program. I really don't want to add more library or module than necessary. So if you guys can detect something wrong with

Re: invoking sub/methods shortcut

2003-10-03 Thread Steve Piner
On Thu, 2 Oct 2003 00:10:57 -0700 (PDT), [EMAIL PROTECTED] wrote: both of these works: return (getVUser($dbh,$u,$d))-rows(); and return getVUser($dbh,$u,$d)-rows(); The first version works, but I'd recommend avoiding it as it suggests that the following should work similarly - but it

Re: invoking sub/methods shortcut

2003-10-03 Thread Hardy Merrill
Steve Piner [EMAIL PROTECTED] wrote: On Thu, 2 Oct 2003 00:10:57 -0700 (PDT), [EMAIL PROTECTED] wrote: both of these works: return (getVUser($dbh,$u,$d))-rows(); and return getVUser($dbh,$u,$d)-rows(); The first version works, but I'd recommend avoiding it as it suggests that