Hi there,
I have a script that it's output is a html page. How
can i send the html page exactly how it is?, the
contents like the one that is on the web server. It is
something like the emails we receive from red hat brim
, oracle and others companies.
Thanks.
Joe
_
Hello List,
How do I compare two dates in the format:
Thu Aug 15 2002 15:12:02
to return if one date is higher than the other.
Does anyone have any ideas on suitable modules, most
the date modules I have looked at dont deal with this
date format.
Any help or po
Paul Ennis <[EMAIL PROTECTED]> wrote:
> I tried to view the perldoc and received the following error message:
>
> :/usr/local/bin>perldoc perl
>
> Can't locate warnings.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.00503/aix /usr/local/lib/perl
> 5/5.00503 /usr/local/lib/perl5/site_perl/5.
Hi falks,
Does anyone know of a way I can send RPC to my server ??
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ahmed Moustafa <[EMAIL PROTECTED]> wrote:
> From: "Bob Showalter" <[EMAIL PROTECTED]>
[ waitpid() in tight loop ]
>> This example is straight out of perldoc -f waitpid, but if it's
>> used "as-is", I don't see the point. Why do a non-blocking wait,
>> when the do loop effectively blocks the pro
Hi,
I wrote a perl script to automatically process
incoming email by setting it up in .forward file. One
of its function is to get the data from the email and
save it to a file, which can be validated and
processed to generate a report.
One issue came up with is that when an email that
contains
On Wednesday, August 14, 2002, at 02:00 , Paul Ennis wrote:
> I tried to view the perldoc and received the following error message:
>
> :/usr/local/bin>perldoc perl
>
> Can't locate warnings.pm in @INC (@INC contains:
> /usr/local/lib/perl5/5.00503/aix /usr/local/lib/perl
> 5/5.00503 /usr/local/
>
> remember that one of the important duties in life
> is to know when to send in the clowns
>
Well said, I must say I wondered momentarily how my post about "his
dealer" would go over, but I felt that those of us half way around the
globe might be able to provide a smile in an otherwi
--- batch m <[EMAIL PROTECTED]> wrote:
> Date: Wed, 14 Aug 2002 15:23:50 -0700 (PDT)
> From: batch m <[EMAIL PROTECTED]>
> Subject: unable to parse html
> To: [EMAIL PROTECTED]
>
> Hail,
> I'm stuck with this parsing script, (attached) I
> found
> on perlmonks.org.
>
> I've got Lemay's SAMS 21
Hail,
I'm stuck with this parsing script, (attached) I found
on perlmonks.org.
I've got Lemay's SAMS 21 day and O'reily's 2rd
edition.
My Perl experience is just modifying a config file
from the plethora of free scripts to now finally
trying to modify a script to accomplish the following
task.
On Wed, Aug 14, 2002 at 08:38:06AM -0700, Ahmed Moustafa wrote:
> $! says 'No child processes'. Does that have something to do with having
> $SIG{CHLD} = 'IGNORE';
> in the code?
Yes, that is probably the reason. However, I cannot duplicate your problem
with perl v5.6.1. Are you using an older
> "Adam" == Adam Turoff <[EMAIL PROTECTED]> writes:
Adam> On Wed, Aug 14, 2002 at 02:53:49PM -0400, Nikola Janceski wrote:
>> WTF doesn't perl -c check for valid subroutines/function calls?
Adam> Because it's quite possible to define subs dynamically. That is,
Adam> the sub isn't defined di
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 15, 2002 3:56 AM
Subject: Executing script "invisibly"
> Hello,
> I am using Javascript (body onload) to execute a script automatically as a page
>loads, but this ends up redirecting
the page
- Original Message -
From: "Bob Showalter" <[EMAIL PROTECTED]>
To: "'Ahmed Moustafa'" <[EMAIL PROTECTED]>; "Perl beginners"
<[EMAIL PROTECTED]>
Sent: Wednesday, August 14, 2002 10:08 AM
Subject: RE: How does ZOMBIE/defunct affect the system?
> > -Original Message-
> > From: Ahme
I tried to view the perldoc and received the following error message:
:/usr/local/bin>perldoc perl
Can't locate warnings.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.00503/aix /usr/local/lib/perl
5/5.00503 /usr/local/lib/perl5/site_perl/5.005/aix
/usr/local/lib/perl5/site_perl/5.005 .) at /
On Aug 14, Nikola Janceski said:
>Okay I understand the dynamic subroutine declarations.
>but perhaps a warning should be made for -w or 'use warnings'?
>
>It's just to find misspelled functions. I use 'use strict' for finding
>misspelled vars. Is there nothing for finding misspelled functions, a
> Is there a way to have a script execute but
> prevent the user from being directed away from
> the home page?
You could load it in an image tag...
It might show as a broken image in some browsers. To fix that you could
have the script send a 1 pixel image to the browser.
print "Content-typ
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 3:56 PM
> To: [EMAIL PROTECTED]
> Subject: Executing script "invisibly"
>
>
> Hello,
> I am using Javascript (body onload) to execute a script
> automatically as a page loads, bu
Hello,
I am using Javascript (body onload) to execute a script automatically as a page loads,
but this ends up redirecting the page to the URL of the script.
Is there a way to have a script execute but prevent the user from being directed away
from the home page?
Much thanks.
--
To unsubscri
Jose Malacara wrote:
>
> Hello. I was wondering if there was a way to open a file into a hash? I know
> this works for arrays, but was wondering if I this could be done for a hash
> also.
>
> I have a file called people.data, which contains two colums:
> jose2
> karen 8
> j
Okay I understand the dynamic subroutine declarations.
but perhaps a warning should be made for -w or 'use warnings'?
It's just to find misspelled functions. I use 'use strict' for finding
misspelled vars.
Is there nothing for finding misspelled functions, aside from running it and
hoping for the
> As it stands now, all my .pl files are associated with ActiveState perl.
> When i double click on them, the perl window opens and displays the output
> for only a fraction of a second before it closes.
I suggest you better associate your perl script with a text editor
rather then the perl.exe.
Are you looking for something like this?
# UNTESTED!
my $county = $query->param('County');
if ( ! $county ) {
# no county was passed.
# display error page to the user, or ignore the request.
}
elsif ( ! exists($counties{$county}) ) {
# they sent a county, but we have no data for it.
# s
> -Original Message-
> From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 2:54 PM
> To: Beginners (E-mail)
> Subject: possible RFC?
>
>
> WTF doesn't perl -c check for valid subroutines/function calls?
>
> I can write a perlscript calling a function that
On Wed, Aug 14, 2002 at 02:53:49PM -0400, Nikola Janceski wrote:
> WTF doesn't perl -c check for valid subroutines/function calls?
Because it's quite possible to define subs dynamically. That is,
the sub isn't defined directly in your code, but is created (and
installed) after your code has star
One reason is that you can make runtime use/require calls, as well as
run-time function definitions with eval.
For example
use strict;
my $subname = 'contrived';
eval qq(sub $subname { print "This could be useful\n" });
contrived();
This may seem highly contrived (it is), but there are useful
If the user doesn't select a county in the first place, $query->param('County') will
be undefined, which means that $counties{$query->param('County')}->{County} will be an
error. So I think I need some code to handle this using something like
if($query->param('County'){}
I'm just stuck.
"Ha
WTF doesn't perl -c check for valid subroutines/function calls?
I can write a perlscript calling a function that doesn't exist but perl -c
will say syntax ok.
ie:
% perl -ce "nothing_here('some junk')"
-e syntax OK
% perl -e "nothing_here('some junk')"
Undefined subroutine &main::nothing_here ca
> ...only the categories for which they have a value
This is probably the easiest way.
# this will set the value to '' if the key doesn't exist
my $email_county = $counties{$query->param('County')}->{County} || '';
> And how do I wrap this so the user will select a county
I'm not sure I unders
I'm writing a script to send emails to different locations. Some will receive one
email, others 3 or 4. Should each county have all the categories, even if some have an
empty value, or only the categories for which they have a value. And how do I wrap
this so the user will select a county
my
Hey Beans,
My MUA believes you used
to write the following on Wednesday, August 14, 2002 at 1:29:57 PM.
B> I'm very very new at Perl. I have a question regarding Perl
B> scripting on Windows. I'm using library books to learn and most of
B> the examples are for UNIX
B> My question
Anyone figure out how to trigger a nice, MFC-like printing dialogue in
Windows? And use an associated API to produce printer output?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Wednesday, August 14, 2002, at 10:29 , Beans wrote:
[..]
> Is this step something that is neccessary for UNIX but not for Windows?
[..]
If you are planning to have your *.pl file run 'on its own'
rather than with
perl foo.pl
then you will need to set the execute bits on the "unix si
> -Original Message-
> From: Beans [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 1:30 PM
> To: [EMAIL PROTECTED]
> Subject: scripting .pl files in Windows
>
>
> I'm very very new at Perl. I have a question regarding Perl
> scripting on
> Windows. I'm using library books
I'm very very new at Perl. I have a question regarding Perl scripting on
Windows. I'm using library books to learn and most of the examples are for
UNIX
My question is:
After writing a .pl file in a text editor, is it neccessary to make it
executable using the command:
chmod +x exampl
> -Original Message-
> From: Ahmed Moustafa [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 11:45 AM
> To: Bob Showalter; 'Sudarshan Raghavan'; Perl beginners
> Subject: Re: How does ZOMBIE/defunct affect the system?
>
> ...
> All I need to do is to reap the dead processes w
- Original Message -
From: "Bob Showalter" <[EMAIL PROTECTED]>
To: "'Sudarshan Raghavan'" <[EMAIL PROTECTED]>; "Perl beginners"
<[EMAIL PROTECTED]>
Sent: Wednesday, August 14, 2002 5:45 AM
Subject: RE: How does ZOMBIE/defunct affect the system?
> > -Original Message-
> > From: S
Mario wrote:
>
> Hi all!
>
> I'm triying to replace my awk habits with perl, but I wonder if there is any place
> where I can find samples and/or documentation about how to run perl from
> the command line. Normally I work in Unix.
>
> For example with awk I used to get a column from the ps o
> > I call external programs with system(). It used to return the correct
> > value i.e. zero if there is no error and a non-zero value otherwise.
> > Recently, it always returns -1 even if the external programs work fine.
> > What could be the reason?
>
>
> From perldoc -f system:
>
> The ret
On Wednesday, August 14, 2002, at 08:24 , Felix Geerinckx wrote:
[..]
> Shame on you.
[..]
p0: I can appreciate the emotional reaction - since I think
that all of us went through that phase of dealing with the
thought that jenda might no longer be in play - IF things
go 'really bad'. Such would
on Wed, 14 Aug 2002 15:27:43 GMT, [EMAIL PROTECTED] (Tang Kim)
wrote:
> I need to learn Perl fast, have some C and 4GL background. What
> is the best way for me to start? I have 2 books that I have
> started looking at. Programming Perl by Wall, Christiansen &
> Schwartz and Perl Cookbook by C
On Wednesday, August 14, 2002, at 08:27 , Kim, Tang (N-Raytheon) wrote:
[..]
> I have 2 books that I have started looking at.
> Programming Perl by Wall, Christiansen & Schwartz and Perl Cookbook by
> Christiansen & Torkington.
reasonably good choices to start with.
You might want to fetch
On Tuesday, August 13, 2002, at 05:09 , Mario wrote:
[..]
> I'm triying to replace my awk habits with perl,
p0: perldoc a2p
will give you all sorts of information about the 'a2p'
application that is reasonable at how to deal with
converting 'awk' scripts into perl code.
a way of looking at tha
Hello, all
I need to learn Perl fast, have some C and 4GL background. What is the best
way for me to start? I have 2 books that I have started looking at.
Programming Perl by Wall, Christiansen & Schwartz and Perl Cookbook by
Christiansen & Torkington. I can download softwares into my PC, but
on Wed, 14 Aug 2002 14:53:47 GMT, [EMAIL PROTECTED] (Timothy
Johnson) wrote:
>
> I thought Coke was it...
>
> -Original Message-
> From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 4:43 PM
> To: 'drieux'; begin begin
> Subject: RE: News from Prague
>
Hi,
I have been using it for quite some time and never had a problem. I am using
it on Win NT platform
Let me know if you need further assistance
A wild guess would be install perl again probably
thanks
junaid
-Original Message-
From: Scott Barnett [mailto:[EMAIL PROTECTED]]
Sent: Tues
On Wednesday, August 14, 2002, at 07:43 , Nikola Janceski wrote:
> [off topic]
> I think drieux has finally lost it.
> What *it* is, I do not know.
> Don't know if I have *it* either.
[..]
well it's not like you have to be Franz Kafka
to figure it out
you go to bed with a copy of the 3rd E
This might be a dumb question, but it's probably a beginner's one.
How can I use CPAN to upgrade perl itself? I think this is possible,
because it's happened to me inadvertently when I was trying to upgrade a
module. I've tried 'install perl' and 'install perl5.8.0' but neither
works. Is this a
Thanks to all who replied with the useful advice. I really appreciate the
help. Thanks!
Jose
- Original Message -
From: "Tor Hildrum" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Perl" <[EMAIL PROTECTED]>
Sent: Wednesday, August 14, 2002 3:53 AM
Subject: Re: open file into hash
> <[EM
I thought Coke was it...
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 4:43 PM
To: 'drieux'; begin begin
Subject: RE: News from Prague
[off topic]
I think drieux has finally lost it.
What *it* is, I do not know.
Don't know if I hav
[off topic]
I think drieux has finally lost it.
What *it* is, I do not know.
Don't know if I have *it* either.
> -Original Message-
> From: drieux [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 10:36 AM
> To: begin begin
> Subject: Re: News from Prague
>
>
>
> On Wednesd
On Wednesday, August 14, 2002, at 04:21 , Joe Mecklin wrote:
> Thanks for all the leads and suggestions. I couldn't quite wrap my mind
> around making select() work for what I want but Time::HiRes works great.
>
> Joe
[..]
>>
>> http://search.cpan.org/author/JHI/perl-5.8.0/ext/Time/HiRes/HiRes.
On Wednesday, August 14, 2002, at 03:33 , Jenda Krynicky wrote:
This of course would not happen if you had used java
rather than trying to do this in perl. Since while
there is a Time::Warp module - there is no Water::Go::Away
module in the CPAN
[..]
> I hope all is well for everybody and
> Code 1: It didnt work...
>
> #!/usr/bin/perl
>
> use CGI;
> $query = new CGI;
> my $filepath='/home/myaccount/uploads/laptop.jpg';
>
> print $query->header('image/jpeg');
> print $filepath;
>
Of cause, you didn't open the file and read the file.
You are trying to print "/home/myaccount/upl
found this with a google search, looks ok, hth
http://www.codebits.com/p5be/ch17.cfm
>
> -Original Message-
> From: Mario [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 5:09 PM
> To: [EMAIL PROTECTED]
> Subject: Perl from command line documentation
>
>
>
> Hi all!
>
> I'
Hi all
Please i need a help.
My problem is that i need to read a csv file format that contain an arabic
data and generate and html page that contains the data, using cgi script
writen in perl, the text file is under solaris system running apache server.
the text file was uploaded into the
> -Original Message-
> From: Sudarshan Raghavan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 14, 2002 7:49 AM
> To: Perl beginners
> Subject: Re: How does ZOMBIE/defunct affect the system?
>
>
> On Tue, 13 Aug 2002, Ahmed Moustafa wrote:
>
> > Ahmed Moustafa wrote:
> > > Drieux
Hey zentara,
My MUA believes you used
to write the following on Wednesday, August 14, 2002 at 8:20:39 AM.
z> It works for me if I comment out the "print $remote" and
z> uncomment the while ( <$remote> ) { print; }
Grrr, I just tried a different http server, and it works just fine...
On Tue, 13 Aug 2002 22:08:47 -0400, [EMAIL PROTECTED] (Tim Musson) wrote:
>### The next line is where I think I am having problems...
>### If I uncomment, I seem to recall it displaying the html code from
>### above (HTTP/1.0 200 OK, etc...). But what happens is it just hangs.
>
># while ( <$rem
Hello All,
I created a simple http upload file routine that uploads file into my
accounts sub folder uploads, "/home/myaccount/uploads". This is
already running.
Now what I wanted to do is retrieve the uploaded file from the
browser, and display the content in the browser if it is an image or
a
Here is a script I use to check system up time. You can specify a remote
server as an argument and it will remotely check the uptime for that server.
This goes into the perfmon stats and gets the information from there.
Keith
--cut here-
#!c
Thanks for all the leads and suggestions. I couldn't quite wrap my mind
around making select() work for what I want but Time::HiRes works great.
Joe
On Tue, 2002-08-13 at 14:55, drieux wrote:
>
> On Tuesday, August 13, 2002, at 12:20 , Joe Mecklin wrote:
>
> > I'm trying to send a file as a
> flooded. See you
> all when the
> water is down :-)
> Jenda
The water is still going up, but the power is still on in our office.
I did not go to work yesterday because they said noone should go to
the center, but I could have. It seems we are safe here, It's strange
how important a tiny
On Wed, 14 Aug 2002, Andy Anderson wrote:
> Hi:
>
> By first changing the % sign to a $ sign and then removing {jose} in the
> print line I got it to work. I tested it in both Windows and Linux
> environments with the same results.
The % specifies that the identifier is a hash and the $ means i
On Wed, 14 Aug 2002, Sudarshan Raghavan wrote:
> On Sun, 11 Aug 2002, Mat Harris wrote:
>
> > Hi, I want to automate my tripwire log reporting through email but
> > having it send me an email every tem minutes even when it hasn't found
> > anything is a bit annoying. What I want ot do is parse t
Hi:
By first changing the % sign to a $ sign and then removing {jose} in the
print line I got it to work. I tested it in both Windows and Linux
environments with the same results.
#! /usr/bi
On Sun, 11 Aug 2002, Mat Harris wrote:
> Hi, I want to automate my tripwire log reporting through email but
> having it send me an email every tem minutes even when it hasn't found
> anything is a bit annoying. What I want ot do is parse through the
> viplation statistics and of any of them are g
on Wed, 14 Aug 2002 07:35:29 GMT, [EMAIL PROTECTED] (Jose Malacara)
wrote:
> I have a file called people.data, which contains two colums:
> jose 2
> karen 8
> jason 9
> tracey 1
> Can someone tell me what I am doing wrong here:
> #! /usr/bin/perl -w
> open (INPUT,
On Wed, 14 Aug 2002, Jose Malacara wrote:
> Hello. I was wondering if there was a way to open a file into a hash? I know
> this works for arrays, but was wondering if I this could be done for a hash
> also.
>
> I have a file called people.data, which contains two colums:
> jose 2
> ka
<[EMAIL PROTECTED]> wrote:
> I have a file called people.data, which contains two colums:
> jose2
> karen8
> jason9
> tracey1
>
>
> Can someone tell me what I am doing wrong here:
> =
> #! /usr/bin/perl -w
>
> open (INPUT,
Hello. I was wondering if there was a way to open a file into a hash? I know
this works for arrays, but was wondering if I this could be done for a hash
also.
I have a file called people.data, which contains two colums:
jose2
karen 8
jason 9
tracey 1
Can someo
Hi, I want to automate my tripwire log reporting through email but
having it send me an email every tem minutes even when it hasn't found
anything is a bit annoying. What I want ot do is parse through the
viplation statistics and of any of them are greater than 0, THEN email
it. Here is an attache
you could try snmp but that (in my experience) always reports the wrong
time if over 2 days.
On Sun, Aug 11, 2002 at 01:19:13PM -0800, Mark Weisman wrote:
> Hello List:
> What is the command structure to grab an uptime request from a remote
> computer? I have several systems in my organization
73 matches
Mail list logo