Script execution via email

2002-05-16 Thread Dan Fish
I've got a perl script that reads a dozen or so various documents and data files and generates a custom report for me (Don't we all have a couple dozen of these? :-) All of that is working fine... What I'd *like* to do is be able to generate these reports "on-demand" from remote locations by set

Re: Script execution via email

2002-05-16 Thread victor
Depending on which mail system you use, I know for qmail, you can setup a .qmail file to instruct qmail to trigger a script when there's any incomming email. Tor. Dan Fish wrote: > > I've got a perl script that reads a dozen or so various documents and data > files and generates a custom repor

Re: Script execution via email

2002-05-16 Thread eric-perl
On Thu, 16 May 2002, Dan Fish wrote: > What I'd *like* to do is be able to generate these reports "on-demand" from > remote locations by setting up some sort of email trigger that will run the > script when an email is sent to specially designated address and then return > the results via email D

RE: Installing PHP

2002-05-16 Thread Reynaldo Valera
Hi, This is my error... "libmysql.c", line 622.5: 1506-280 (W) Function argument assignment between type s "void(*)(int)" and "int(*)(int)" is not allowed. "libmysql.c", line 1158.3: 1506-280 (W) Function argument assignment between typ es "void(*)(int)" and "int(*)(int)" is not allowed

urandom

2002-05-16 Thread Postman Pat
Greetings, I would like to create get some random stuff using /dev/urandom. What I was thinking is using stuff from urandom as the random seed and using the normal rand stuff from perl? Any ideas how I could code this, or is there a better way of actually getting random stuff. Regards K --

How to use perl in asp

2002-05-16 Thread en_prashant
can I use this attached perl script with ASP.If yes then How,and if not how we can change it to vbscript prashant (See attached file: p1.txt) p1.txt Description: Text - character set unknown -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: perl-Tk static

2002-05-16 Thread Alan Drew
> Thanks once again; > sorry - the name 'tkperl' as far as I 'get it' really no longer > exists as a stand alone application - that you really will want > to chase down - assuming that you are not trying to do the > > mix and match perl/TK and Tcl/TK where you have > Tcl::Tk t

Re: urandom

2002-05-16 Thread Chris Ball
> "Postman" == Postman Pat <[EMAIL PROTECTED]> writes: Postman> Greetings, I would like to create get some random stuff Postman> using /dev/urandom. What I was thinking is using stuff from Postman> urandom as the random seed and using the normal rand stuff Postman> from perl?

RE: Modifying text in a dat file

2002-05-16 Thread Bob Showalter
> -Original Message- > From: Josh [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 10:12 PM > To: [EMAIL PROTECTED] > Subject: Modifying text in a dat file > > > Hey guys.. > > I wrote a script that writes to a dat file with the following > username:plan: .. example test:20:

RE: Help with my first package??

2002-05-16 Thread Miretsky, Anya
I've tried both now and I still get the error "can't locate DBI.pm in @INC.." I've used the DBI module successfully in my other cgi pages so I can't understand why its not being found here??? -Original Message- From: David Kirol [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002

Re: urandom

2002-05-16 Thread drieux
On Wednesday, May 15, 2002, at 11:24 , Postman Pat wrote: > Greetings, > I would like to create get some random stuff using /dev/urandom. What I > was thinking is using stuff from urandom as the random seed and using the > normal rand stuff from perl? how exactly were you planning to read /dev/

Perldoc

2002-05-16 Thread Jackson, Harry
If I wanted information on declaring variables using perldoc how would I find it. perldoc perldoc is no use. Is there a way where I can list all the different documents and contents. Harry * COLT Telecommun

Re: perl-Tk static

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 02:36 , Alan Drew wrote: heads up warning for you alan - I had to go back and do a rebuild of perl from the CPAN source since the RedHat 7.2 default install of perl was built small. I need to deal with files bigger than 2-gig - hence had to rebuild using the USE_LA

Re: Getting data from an Access 2000 Database

2002-05-16 Thread drieux
On Wednesday, May 15, 2002, at 05:58 , Daniel J. Rychlik wrote: > Use Getopt::Std; > Use Win32::ODBC; - yes the 'thwacking' sound that you hear is me hitting my forehead going - "dumb drieux, dumb drieux." I shall answer anyone who asks if Win32::ODBC is the right choice for Access 2000

Re: Installing PHP

2002-05-16 Thread drieux
On Wednesday, May 15, 2002, at 09:38 , Reynaldo Valera wrote: [..] > I am installing PHP on a UNIX-AIX box do i need to have perl installed > before i can proceed, becasue i am encountering problems on my > installation. I agree with Timothy - that we will need a bit more context. In the

Re: Installing PHP

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 02:03 , Reynaldo Valera wrote: > This is my error... > > "libmysql.c", line 622.5: 1506-280 (W) Function argument assignment > between > type > s "void(*)(int)" and "int(*)(int)" is not allowed. > "libmysql.c", line 1158.3: 1506-280 (W) Function argument assi

RE: Perldoc

2002-05-16 Thread Bob Showalter
> -Original Message- > From: Jackson, Harry [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 9:48 AM > To: [EMAIL PROTECTED] > Subject: Perldoc > > > If I wanted information on declaring variables using perldoc > how would I > find it. > > perldoc perldoc > > is no use. "p

restoring state from a file

2002-05-16 Thread Michael Ragsdale
I'm working for the first time on saving state to a file based on Lincoln Stein's example and I'm having problems. Test code excerpts are below. save_state() is successfully creating and writing a file in the STATES directory holding several keyword=value pairs. The problem is when I restor

Re: Perldoc

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 06:48 , Jackson, Harry wrote: > If I wanted information on declaring variables using perldoc how would I > find it. there are possibly three or four ways that sentance can be parsed. the coping with scoping problems - as to how far 'closure' goes with a variable d

Library ref man

2002-05-16 Thread Postman Pat
Greetings, I am looking for a perl library reference manual in PDF format if there is such a thing out there. I have seen library ref manuals in html, but was just wondering if there is anything in PDF just to avoid downloading the stuff. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: perl-Tk static

2002-05-16 Thread Alan Drew
> OldGuyPerlerInTraining bows his head Python *eeew* *shudder* Java. *BIGGER EEEW* *BIGGER SHUDDER* > heads up warning for you alan - I had to go back and do > a rebuild of perl from the CPAN source since the RedHat 7.2 > default install of perl was built small. > > I need to deal with f

RE: Perldoc

2002-05-16 Thread Hanson, Robert
The "perldoc" manpage is about the perldoc utility... "perlpod" talks about the Plain Old Documentation (pod) format. So I think "perldoc perlpod" is what you are looking for. Rob -Original Message- From: Jackson, Harry [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 9:48 AM To

Re: Help with my first package??

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 06:22 , Miretsky, Anya wrote: > I've tried both now and I still get the error "can't locate DBI.pm in > @INC.." I've used the DBI module successfully in my other cgi pages so I > can't understand why its not being found here??? That sounds like: a) it is n

Re: Syntax error

2002-05-16 Thread Jaishree Rangaraj
Hello All: Can anybody please tell me if this syntax is corect. I am getting syntax error in this block. foreach $sorted_field (@sorted_fields) { if ($Config{'print_blank_fields'} || $Form{$sorted_field}) { $_=$sorted_field; $field=m/

RE: Help with my first package??

2002-05-16 Thread Shishir K. Singh
guess that should be perl -mDBI -e 'print $DBI::VERSION' -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 10:50 AM To: [EMAIL PROTECTED] Subject: Re: Help with my first package?? On Thursday, May 16, 2002, at 06:22 , Miretsky, Anya wrote: > I'

RE: Help with my first package??

2002-05-16 Thread Miretsky, Anya
Thanks, you are right its not in @INC, I am not sure though how my other pages are working ?? -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 10:50 AM To: [EMAIL PROTECTED] Subject: Re: Help with my first package?? On Thursday, May 16, 2002, at

RE: Perl Cookbook

2002-05-16 Thread John Mooney
Also, consider the perl 6 books on CD from O'Reilly, which includes the cookbook. I have this installed onto the hard drive, search for the functions or problems I'm trying to deal with, and have immediate access to all the code examples for pasting into scripts. Definitely a timesaver ... I j

Re: Help with my first package??

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 07:45 , Miretsky, Anya wrote: > Thanks, you are right its not in @INC, I am not sure though how my other > pages are working ?? The possibility is that they have a 'feature' in them that is not obvious - and allows them to appear to be working. It might be time to

RE: Help with my first package??

2002-05-16 Thread Shishir K. Singh
forgiven :) -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: Re: Help with my first package?? On Thursday, May 16, 2002, at 07:45 , Miretsky, Anya wrote: > Thanks, you are right its not in @INC, I am not s

RE: Syntax error

2002-05-16 Thread Bob Showalter
> -Original Message- > From: Jaishree Rangaraj [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 10:53 AM > To: [EMAIL PROTECTED] > Subject: Re: Syntax error > > > > Hello All: > > Can anybody please tell me if this syntax is corect. I am > getting syntax error in this block.

oracle DBI

2002-05-16 Thread Danny Grzenda
I want to access our oracle db using perl dbi. Does anybody know what oracle software I need installed on my Windows workstation? I am getting the following messge error message. The dynamic link library OCIW32.dll could not be found in the specified path. Daniel G. Grzenda Appli

Re: Perldoc

2002-05-16 Thread Chris Ball
> "Robert" == Robert Hanson <[EMAIL PROTECTED]> writes: >> If I wanted information on declaring variables using perldoc how >> would I find it. perldoc perldoc is no use. Robert> The "perldoc" manpage is about the perldoc Robert> utility... "perlpod" talks about the Plain Ol

Setting limit coredumpsize

2002-05-16 Thread Mayank Ahuja
Hi All I'm working on Unix (solaris) I want to set the coredumpsize to 0 On shell (Csh) we run limit coredumpsize 0 Now i want to do the same using Perl script. I cannot use system or backticks (` `) because this will fork off a different shell. I tried using eval but it's not working. Pro

Re: Books

2002-05-16 Thread Randal L. Schwartz
> "Jim" == Jim C <[EMAIL PROTECTED]> writes: Jim> There was a lot of stuff removed from Learning Perl 3rd Ed that was in Jim> 2nd. It has been kind of cool to see what was removed. I guess they Jim> thought that some of the items were a: not important or relevant b: more Jim> advanced or c:

Re: Setting limit coredumpsize

2002-05-16 Thread Alan Drew
You could try using shell - the module tha allows you to use shell commands as subroutines. e.g: use shell; $uptime = uptime(); print $uptime; 4:39pm up 20 days, 16:33, 6 users, load average: 0.41, 0.32, 0.00 Not sure it will help. A. On Thursday, May 16, 2002, at 03:32 PM, Mayank Ahuja wrote

RE: Perldoc

2002-05-16 Thread Jackson, Harry
Title: RE: Perldoc >-Original Message- >From: Chris Ball [mailto:[EMAIL PROTECTED]] > >If this is the case, the perldoc page containing the table of contents >for perldoc is found with:  perldoc perltoc Sorry about not confirming sooner. perldoc perl perldoc perltoc These wher

RE: oracle DBI

2002-05-16 Thread Jackson, Harry
>-Original Message- >From: Danny Grzenda [mailto:[EMAIL PROTECTED]] > > >I want to access our oracle db using perl dbi. Does anybody >know what oracle >software I need installed on my Windows workstation? > >I am getting the following messge error message. > >The dynamic link library OC

RE: Perldoc

2002-05-16 Thread Jackson, Harry
My humble apologies for sending the HTML mail. I have no idea how it happened other than I am using a very flaky operating system with several flaky applications. Harry * COLT Telecommunications Registered in En

C/C++ Comment Extractor : Help!!

2002-05-16 Thread cooldude
Hi Perl Gurus, I'm trying to Implement a comment extractor from C/C++ Source files. Before trying to re-invent the wheel., Is there such a tool already?! My basic purpose is to generate documentation out of the existing comments. If there isn't such a tool, can you give me some

stop the Madness

2002-05-16 Thread drieux
> the sole purpose for me using perl is to: > 1) manipulate ascii files with data in . > 2) a front end (I.e Tk) to some analysis software we have - ... > 3) a bit of fun I feel morally compelled to point out to any of the real Newbies who are on the beginner's mailing list that this READS l

RE: C/C++ Comment Extractor : Help!!

2002-05-16 Thread Nikola Janceski
Heheheh... My company has actually just completed such a project for generating help docs from the C/C++ comments in our code which accompany our regular help docs. Hehheh... the funny part is that it took about a year to develop to conform to the various comments. Our clients can even use it to g

RE: stop the Madness

2002-05-16 Thread Nikola Janceski
See answers of a mid-level (3 years) Perl user below. > -Original Message- > From: drieux [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 12:11 PM > To: [EMAIL PROTECTED] > Subject: stop the Madness > > > > > the sole purpose for me using perl is to: > > 1) manipulate ascii f

Re: Setting limit coredumpsize

2002-05-16 Thread Michael Lamertz
On Thu, May 16, 2002 at 09:02:44PM +0530, Mayank Ahuja wrote: > Hi All > > > I'm working on Unix (solaris) > I want to set the coredumpsize to 0 > Now i want to do the same using Perl script. > I cannot use system or backticks (` `) because this will fork off a > different shell. That wo

Re: Setting limit coredumpsize

2002-05-16 Thread Jonathan E. Paton
> I'm working on Unix (solaris) > I want to set the coredumpsize to 0 > > On shell (Csh) we run > limit coredumpsize 0 ln -s /dev/null core just stick into any directory where you could have a core dump. You must be doing something mission critical to be desperate to stop these, but not missi

Re: stop the Madness

2002-05-16 Thread LoneWolf
HILARIOUS!! :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: C/C++ Comment Extractor : Help!!

2002-05-16 Thread Michael Lamertz
On Thu, May 16, 2002 at 09:18:49PM +0530, [EMAIL PROTECTED] wrote: > Hi Perl Gurus, > I'm trying to Implement a comment extractor from C/C++ Source > files. > (Being a newbie... I'm poor in > regexes., and I think (?) , this can be pretty easy with regexps). Actually no, it's no

Re: stop the Madness

2002-05-16 Thread A Taylor
SO TRUE ! GLAD I AM NOT ALONE !!! HA HA >I feel morally compelled to point out to any of the >real Newbies who are on the beginner's mailing list >that this READS like the usual form of 'deep denial' >that needs to come out in the light of day. > >Oh sure - today its a little text fil

Re: Perldoc

2002-05-16 Thread Dennis G. Wicks
Yes, perldoc is only useful if you already know what you are looking for! Some perlmeister should come up with something that does a real search for terms in the things that perldoc knows about that works something along the lines of man -k. For instance, contrast man float with man -k float. Unt

copying hash structures into a CGI script

2002-05-16 Thread Maureen E Fischer
I am trying to copy three hash structures into a CGI program because I don't want to hard code the information (which will frequently change) into all of the programs that may eventually use it. This is my first CGI program and only my second Perl attempt. I found that the require command will

Re: Setting limit coredumpsize

2002-05-16 Thread Michael Lamertz
On Thu, May 16, 2002 at 05:24:47PM +0100, Jonathan E. Paton wrote: > > ln -s /dev/null core I thought you deserved a beating... > just stick into any directory where you could > have a core dump. You must be doing something > mission critical to be desperate to stop these, > but not mission cr

snmp->set?

2002-05-16 Thread P lerenard
Hi, I tried to change an ip route on a remote router but it is not working. the ip route stuff is in read-write so it is possible with snmp set. the program works to change syscontact and any example that I saw was to set the syscontact(not really helpfull in the real life). Any body with a samp

RE: stop the Madness

2002-05-16 Thread Timothy Johnson
And there's always those days where you start sending out emails with semicolons at the end of the sentences. Yesterday I even caught myself writing code on a piece of napkin on my lunch. I'm afraid the day will finally come where I start trying to rearrange all of my paragraphs into a single s

RE: stop the Madness

2002-05-16 Thread Nikola Janceski
print "Resistance is futile\n"; > -Original Message- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 16, 2002 1:45 PM > To: [EMAIL PROTECTED] > Subject: RE: stop the Madness > > > > And there's always those days where you start sending out emails with > semicol

perl DBI disconnect question

2002-05-16 Thread rory oconnor
Regarding perl DBI - I know it's proper to use $sth->finish and $dbh->disconnect and I am doing that at the end of my script... however, i am also doing alot of error checking at the beginning of the script (to make sure data has been entered, and formatted properly). If there's an error I woul

Re: Perldoc

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 11:52 , Dennis G. Wicks wrote: > Yes, perldoc is only useful if you already know what > you are looking for! the same is equally as true about the man pages for folks who have never been in a unix environment. { it is SO ANNOYING that perldoc perldoc does not have

determine the invoking function

2002-05-16 Thread Christian . Niebuhr
Hello, is it possible to determine within a function from which module/function this one was called? for instance: sub test1 { test2(); } sub test2 { you were called from function test1. } thanks in advance, Christian -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: determine the invoking function

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 11:14 , [EMAIL PROTECTED] wrote: > Hello, > > is it possible to determine within a function from which > module/function this one was called? perldoc Carp ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: determine the invoking function

2002-05-16 Thread Jonathan E. Paton
--- drieux <[EMAIL PROTECTED]> wrote: > > On Thursday, May 16, 2002, at 11:14 , [EMAIL PROTECTED] wrote: > > > Hello, > > > > is it possible to determine within a function from which > > module/function this one was called? > > perldoc Carp > Not quite Drieux, but close (depending what it is

RE: determine the invoking function

2002-05-16 Thread Wagner, David --- Technical Specialist I ---WGO
You use the function caller (see Perl Programming chapter 22) and use 0 for current stack, 1 for the caller, 2 for caller's caller, etc. To see who I am, caller(0). To see who called me, caller(1). Wags ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EM

Re: copying hash structures into a CGI script

2002-05-16 Thread Todd Wade,,,Room 108
Maureen E Fischer wrote: > code for me, but since this is considered its own "block", I cant't > refer to the variables. Should I be > > going about this in a totally different way? You want to create a class. OOP might sound scary, but its not. # name this file DynamicConfig.pm and # save it

RE: stop the Madness

2002-05-16 Thread Jonathan E. Paton
--- Timothy Johnson <[EMAIL PROTECTED]> wrote: > > And there's always those days where you start sending out emails with > semicolons at the end of the sentences. Yesterday I even caught myself > writing code on a piece of napkin on my lunch. I'm afraid the day will > finally come where I star

help with Math::CDF module

2002-05-16 Thread Prachi Shroff
Hello everyone! I wanted to generate normally distributed data set with a given sample size. The easiest way to it will be to have a routine that calculates the quantiles for a normal distribution. The Math::CDF module does have what I want, but I am having problems installing it. The make giv

Re: Perl Cookbook

2002-05-16 Thread Todd Wade,,,Room 108
Patrick Dempster wrote: > Hi Folks, > > I've just worked my way though the learning perl (lama book) 3rd edition > and I must say I found it very good, and after lurking in here for a while > and hearing people talk about the perl cookbook. I took a wander over to > amazon and read the reviews,

Re: How do I delete a file

2002-05-16 Thread Todd Wade,,,Room 108
Connie Chan wrote: > >> unlink($_) for @$filelist ; > > > Heehee.. Thanks a lot !!! I really don't know for loop can be writtern > in this way [trwww@misa trwww]$ perldoc -f unlink unlink LIST unlink Deletes a list of files. Returns the number of files success

Re: perl DBI disconnect question

2002-05-16 Thread José Nyimi
I'm not a DBI guru but I guess if you "try and catch" your DBI exception handling with eval, you can exit properly at all. I mean: eval{ $dbh=DBI->connect($connect_string); $sth=$dbh->prepare($sql); $sth->execute(); #some fetch here $sth->finish(); $dbh->disconnect(); } if($@) { print "program

proper way to start daemon

2002-05-16 Thread Matt Simonsen
I have a script to monitor servers which is basically an infinate loop that sleeps and runs again. I start from a ssh session by the command: ssh -f $server "~/script &" It seems to be dieing on some of our busier servers. I'm guessing this is because I'm not doing it properly... but I'm not su

Re: perl DBI disconnect question

2002-05-16 Thread Todd Wade,,,Room 108
Rory Oconnor wrote: > > Regarding perl DBI - I know it's proper to use $sth->finish and > $dbh->disconnect and I am doing that at the end of my script... > > however, i am also doing alot of error checking at the beginning of the > script (to make sure data has been entered, and formatted prope

Re: determine the invoking function

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 11:27 , Jonathan E. Paton wrote: > --- drieux <[EMAIL PROTECTED]> wrote: > >> On Thursday, May 16, 2002, at 11:14 , [EMAIL PROTECTED] >> wrote: >>> Hello, >>> >>> is it possible to determine within a function from which >>> module/function this one was called? >> >

Re: perl DBI disconnect question

2002-05-16 Thread Felix Geerinckx
on Thu, 16 May 2002 18:03:12 GMT, Rory Oconnor wrote: > > Regarding perl DBI - I know it's proper to use $sth->finish and > $dbh->disconnect and I am doing that at the end of my script... > > however, i am also doing alot of error checking at the beginning of the > script (to make sure data has

Re: proper way to start daemon

2002-05-16 Thread Felix Geerinckx
on Thu, 16 May 2002 19:16:58 GMT, Matt Simonsen wrote: > I have a script to monitor servers which is basically an infinate > loop that sleeps and runs again. I start from a ssh session by the > command: > > ssh -f $server "~/script &" > > It seems to be dieing on some of our busier servers. I

RE: proper way to start daemon

2002-05-16 Thread Nikola Janceski
I have been know to run out of processes on a server. So... if your daemon is spawning other processes and dies because "No more processes." Then I'd suggest using a cron-jobbed script that checks to see if your daemon is alive and running at regular intervals, and if it isn't to restart it again.

POD v. 3rd Edition was - Re: determine the invoking function

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 11:23 , Wagner, David --- Technical Specialist I ---WGO wrote: > You use the function caller (see Perl Programming chapter 22) and use > 0 for current stack, 1 for the caller, 2 for caller's caller, etc. > > To see who I am, caller(0). > To see w

@INC configuration

2002-05-16 Thread Artur F. Pimentel
Hello All: Is there some way to configure the @INC in perl enviroment? Thank you, Artur F. Pimentel. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: proper way to start daemon

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 12:16 , Matt Simonsen wrote: [..] > I'm guessing this is because I'm not doing it properly... but I'm not sure > exactly what "proper" would be to do this. > > My best guess is I should have the script immediately fork a copy of > itself > then die while the forked

Re: @INC configuration

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 11:55 , Artur F. Pimentel wrote: > Hello All: > > Is there some way to configure the @INC in perl enviroment? http://www.wetware.com/drieux/CS/lang/Perl/PM/useLibHack.html ciao drieux --- the APOSTATE will mention PERL5_LIB - but they should be burned at the st

Large Insert statements

2002-05-16 Thread Kevin O
Hello all, I need to insert a lot of data into a mysql table. Know that I can do it like this example: my $sth = $dbh->prepare(q{ INSERT INTO sales (product_code, qty, price) VALUES (?, ?, ?) }) or die $dbh->errstr; while (<>) { chomp; my ($product_code, $qty, $price) =

Re: Large Insert statements

2002-05-16 Thread Frank Wiles
I would first suggest taking another look at your table design. Having 500 columns in a table is most likely not a thing you really want to do. But if you must, then yes you will have to put in 500 ?'s into your prepare. - Frank Wiles <[EMAIL

RE: Good Win32 modules to know (WAS RE: Network names and the comments)

2002-05-16 Thread Timothy Johnson
BTW, if anyone needs the files for Win32::Lanman, I can provide them in ZIP format. It appears that Jenda's site is having some technical difficulites at the moment. -Original Message- From: David Gray [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 8:10 AM To: 'Timothy Johnson'

proper way to start daemon

2002-05-16 Thread Matt Simonsen
I have a script to monitor servers which is basically an infinate loop that sleeps and runs again. I start from a ssh session by the command: ssh -f $server "~/script &" It seems to be dieing on some of our busier servers. I'm guessing this is because I'm not doing it properly... but I'm not

Re: proper way to start daemon

2002-05-16 Thread Harry Jackson
> > From: Matt Simonsen[SMTP:[EMAIL PROTECTED]] > > > I have a script to monitor servers which is basically an infinate > loop that > sleeps and runs again. I start from a ssh session by the command: > > ssh -f $server "~/script &" > > It seems to be dieing on some of our busier servers.

Re: perl DBI disconnect question

2002-05-16 Thread Harry Jackson
> > From: Felix Geerinckx[SMTP:[EMAIL PROTECTED]] > > exit the script to prevent it from having to run through the rest > of it needlessly. do I need to explicitly disconnect before exiting >in those instances or it it OK to just exit? You can always put the >following in your script: > > E

Re: Large Insert statements

2002-05-16 Thread Harry Jackson
> > From: Kevin O[SMTP:[EMAIL PROTECTED]] > > Hello all, > > I need to insert a lot of data into a mysql table. Know that I can > do it > like this example: > > my $sth = $dbh->prepare(q{ > INSERT INTO sales (product_code, qty, price) VALUES (?, ?, ?) > }) or die $dbh->errstr; >

Re: Large Insert statements

2002-05-16 Thread bob ackerman
On Thursday, May 16, 2002, at 01:55 PM, Kevin O wrote: > Hello all, > > I need to insert a lot of data into a mysql table. Know that I can do it > like this example: > > > > my $sth = $dbh->prepare(q{ >INSERT INTO sales (product_code, qty, price) VALUES (?, ?, ?) > }) or die $dbh->errstr

[ Something Funnie to Read ;) ]

2002-05-16 Thread Czar
This is harsh but funny http://www.flex.com/sign_up/

Re: Large Insert statements

2002-05-16 Thread Harry Jackson
> > From: Kevin O[SMTP:[EMAIL PROTECTED]] > > Hello all, > > I need to insert a lot of data into a mysql table. Know that I can > do it > like this example: > > > > my $sth = $dbh->prepare(q{ > INSERT INTO sales (product_code, qty, price) VALUES (?, ?, ?) > }) or die $dbh->errst

Re: Large Insert statements

2002-05-16 Thread Chas Owens
On Thu, 2002-05-16 at 16:55, Kevin O wrote: > Hello all, > > I need to insert a lot of data into a mysql table. Know that I can do it > like this example: > > > > my $sth = $dbh->prepare(q{ > INSERT INTO sales (product_code, qty, price) VALUES (?, ?, ?) > }) or die $dbh->errstr; > w

Re: Large Insert statements

2002-05-16 Thread Michael Fowler
On Thu, May 16, 2002 at 03:55:29PM -0500, Kevin O wrote: > My problem is, I have 500 fields. I know I can start the Insert statement > like INSERT INTO mytable VALUES - cause I'm inserting a value for every > field in the database, but do I have to type a "?" for all 500 fields? > BTW, I'm ju

RE: [ Something Funnie to Read ;) ]

2002-05-16 Thread Timothy Johnson
This IS funny, but you shouldn't send URLs to people without some kind of description. I don't know about the rest of you but I am pretty much paranoid about any HTML docs sent to me by email. -Original Message- From: Czar [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 2:59 PM

Re: [ Something Funnie to Read ;) ]

2002-05-16 Thread Bob
Timothy Johnson wrote: > > This IS funny, but you shouldn't send URLs to people without some kind of > description. I don't know about the rest of you but I am pretty much > paranoid about any HTML docs sent to me by email. Hi Timothy What could a url do, it isn't a document, just a lin

Re: [ Something Funnie to Read ;) ]

2002-05-16 Thread Czar
Timothy, I agree. i'll add a caption of some sort --Czar© - Original Message - From: "Timothy Johnson" <[EMAIL PROTECTED]> To: "' Czar'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 3:08 PM Subject: RE: [ Something Funnie to Read ;) ] > > This IS funny, but yo

Re: [ Something Funnie to Read ;) ]

2002-05-16 Thread eric-perl
On Thu, 16 May 2002, Bob wrote: > What could a url do, it isn't a document, just a link. Two words: Code Red. -- Eric P. Los Gatos, CA -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: proper way to start daemon

2002-05-16 Thread Michael Lamertz
On Thu, May 16, 2002 at 12:16:58PM -0700, Matt Simonsen wrote: > > My best guess is I should have the script immediately fork a copy of itself > then die while the forked copy still runs, but I haven't been able to figure > out how to make that work. Any suggestions would be helpful, especially a

RE: [ Something Funnie to Read ;) ]

2002-05-16 Thread Timothy Johnson
Exactly. Maybe I should have phrased it better, but there was an email virus just recently that worked on this principle. It contained a link to an infected website instead of an attachment. You can't be infected by just reading the message, but if the link is the point of the message, then yo

[ADMIN - Thread closed] Re: [ Something Funnie to Read ;) ]

2002-05-16 Thread Kevin Meltzer
Funny (and somewhat true) as it may be, this is not the proper forum to post random links which have nothing to do with Perl. Consider this thread closed, and any future similar thread closed before it begins :) Cheers, Kevin On Thu, May 16, 2002 at 03:19:00PM -0700, Czar ([EMAIL PROTECTED]) s

Re: proper way to start daemon

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 03:24 , Michael Lamertz wrote: [..] > > 1. get out of the parent's (in that case your shell's) process group. > We'll have PPID 1 after this call. The only error that setsid can throw > is EPERM which means that we already are process group leader. > > 2. move up to

SQL Statement error msg. Please advise

2002-05-16 Thread Daniel J. Rychlik
Hello, Im working on running this $sqlstatement for work purposes. My = $txtAgentID='skraal'; will be an array of 13 agents. (I was just trying to get this to run for one agent) The error message Im getting is at the bottom. Any Ideas? Is my SQL statement a bit too complex for this script?

Re: SQL Statement error msg. Please advise

2002-05-16 Thread bob ackerman
On Thursday, May 16, 2002, at 04:12 PM, Daniel J. Rychlik wrote: > Hello, > > Im working on running this $sqlstatement for work purposes. My = > $txtAgentID='skraal'; will be an array of 13 agents. (I was just trying > to get this to run for one agent) The error message Im getting is at > th

BEGIN and END

2002-05-16 Thread drieux
On Thursday, May 16, 2002, at 02:05 , Harry Jackson wrote: > Does anyone have any other things that would be good practice in most > scripts. BEGIN { } cf p465 3rd Edition cf p481ff for a discussion on this and END {} the court is out on stuffing things in the END block, there are cavea

"From" field in a Sendmail Sub

2002-05-16 Thread Troy May
Is this field for email addresses only? I can't get it to say my name. Here's what I have: print MAIL "From: Troy\n"; print MAIL "From: Troy May\n"; Neither work. They come through as my server email address. Can this be done? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: Perldoc

2002-05-16 Thread Chris Ball
> "Harry" == Harry Jackson writes: Harry> perldoc perl perldoc perltoc Harry> These where just what I was after. Its hard to believe I have Harry> been rummaging around in Perl for a few weeks and only Harry> realised they where on my system yesterday. Cheers for all Har

  1   2   >