Sending Mail

2002-11-13 Thread Jessee Parker
I've tried a few different methods of trying to send out e-mails for the company I work for but I've run into a number of obstacles. Each way I've tried, I've noticed that the script hits these periods of inactivity which I don't exactly know is the cause. I've used 3 different modules and I ev

Perl / MySQL Question

2002-11-11 Thread Jessee Parker
In my script, I do the following: I insert x amount of records into a MySQL table, process the information and then delete those records. One of the columns is an autonumber type so it starts at 1 for instance. In my query string I use placeholders. Now sometimes the field which is an autonumber st

RE: Strange behaviour

2002-11-08 Thread Jessee Parker
2 5:26 PM To: [EMAIL PROTECTED] Subject: Re: Strange behaviour Jessee Parker wrote: > I am currently running this on Redhat Linux version 7.3 and using Perl > version 5.8.0. I've tried different things - let the process run and > process multiple batches of files and I have killed it wit

Re: Strange behaviour

2002-11-07 Thread Jessee Parker
that is of any help. Jessee - Original Message - From: "david" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 07, 2002 5:02 PM Subject: Re: Strange behaviour > Jessee Parker wrote: > > > Hi all, > > > > I have a sc

Strange behaviour

2002-11-07 Thread Jessee Parker
Hi all, I have a script that basically waits for 2 files to be delivered to it, then it processes the 2 files, inserts them into the database and then starts sending information. After information is sent, it deletes the record from the database and increments a counter. I do a fork in the sub

Fork Question

2002-11-05 Thread Jessee Parker
Using Perl on a Linux system, is there a way to fork off x amount of copies then make a system wait until those copies are finished before forking off more copies? If so can you show me an example if possible. It would be greatly appreciated! TIA Jessee -- To unsubscribe, e-mail: [EMAIL PROTEC

Fork() Question

2002-10-31 Thread Jessee Parker
I know when you fork() a process the child is a duplicate of the parent, but does the forked copy have the same priority and time slice assigned to it or is it brand new? Jessee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Thread Module

2002-10-31 Thread Jessee Parker
I am trying to use the Thread module but I get the following error: Can't locate Thread.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /

Nice

2002-10-18 Thread Jessee Parker
How do you monitor and change the "nice" value of your program? I'm running RH Linux 7.3. Thanks! Jessee

strange trace results using Net::SMTP and Mail::Sender

2002-10-11 Thread Jessee Parker
I don't know if this points to a bug in my operating system, a bug in my code or if it's normal but basically when I use these modules and run a strace (using Linux 7.3) it gives me the following: 12:28:39 close(3) = 0 12:28:39 munmap(0x400c8000, 4096) = 0 12:28:39 clo

Net::SMTP Values

2002-10-10 Thread Jessee Parker
How do you get the return values for NET::SMTP calls like for instance $smtp->datasend() to check if it sent out correctly? TIA Jessee

Installing a PM on Linux

2002-10-04 Thread Jessee Parker
Hi all, this is most likely a silly question but in the past I have just did installs of Perl modules using the perl -MCPAN -e shell command. How do you install a .pm file if you already downloaded from somewhere? Thanks in advance as always! Jessee -- To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Sockets and Sleep Question

2002-10-03 Thread Jessee Parker
> On Thu, Oct 03, 2002 at 10:10:34AM -0700, Jessee Parker wrote: > > At the top of the loop, I check the system uptime to get the load average > > so I can have the program sleep for 5 seconds to let things stabilize a > > bit. > > I suspect an easier way of doing thi

Sockets and Sleep Question

2002-10-03 Thread Jessee Parker
I have a program that uses the Mail::Sender module that loops through and gets the names and e-mail addresses out of a MySQL database. At the top of the loop, I check the system uptime to get the load average so I can have the program sleep for 5 seconds to let things stabilize a bit. When

Re: Insertion and Quotes

2002-10-02 Thread Jessee Parker
- Original Message - From: "david" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 02, 2002 10:15 AM Subject: Re: Insertion and Quotes > Jessee Parker wrote: > > > > > I tried doing this on my last run of data but things

Re: Insertion and Quotes

2002-10-02 Thread Jessee Parker
> Use placeholders and your quoting troubles will be over forever ;-) > > E.g.: > > my $sql = "INSERT INTO atable VALUES (NULL, ?, ?)"; > my $sth = $dbh->prepare($sql); > $sth->execute($a_var, $another_var_with_embedded_quotes); > > -- > felix > > -- I tried doing this on my last

Insertion and Quotes

2002-10-01 Thread Jessee Parker
I'm a bit confused on why this is happening and I'm hoping someone can shed some light on things for me. I read in information from a file which is comma delimted and I use the parsing routine I found in the Perl Cookbook. When it hits a name with " marks around it, it shifts everything over w

CGI Script and getting the PID

2002-09-30 Thread Jessee Parker
Hi all, I've run into a bit of a problem. I need to see if a program is currently running. If it is, I want to display this on a web page that tells the status of the program (either on or off). The script I created which is probably longer than it needs to be, basically issues a system(ps -A) cal

Debugging

2002-09-26 Thread Jessee Parker
Is there any way to use the perl debugger to step through a script that forks a child (step into the child I guess is what I am asking)? I have a script that forks a copy of itself to act as a daemon. I've noticed that when the script runs, the load average on the system steadily rises. Jessee

Re: Finding a Pattern in a File

2002-09-24 Thread Jessee Parker
Sorry to make this a little clearer, I want to find the delimiter and then process what's past the delimiter. So all the html code would go into a variable and then all the text would go into a different variable. Sorry for the confusion. Jessee

Finding a Pattern in a File

2002-09-24 Thread Jessee Parker
Hi all, What I'm trying to do is find some type of user defined delimiter in a file so that I can combine 2 files into 1. An example of the file would be: ## HTML ## some HTML code ## TEXT ## some text Any help would be greatly appreciated. I'm fairly new to Perl and I don't know wh