We're here (the royal we ;)) - just haven't seen anything to drop/chime in on. My guess is that we're all pretty busy coding up our webapps to instigate threads.

Drop in on our IRC channel if you want some more chatter. irc.perl.org & #cgiapp

Since I'm posting, I'll add a lil' nugget I just gleamed. We have a utility script that may take a while to run, so I worked in a fork() call, which meshes very well with cgiapp. It helps that I don't need to worry about the output of the script.

sub my_runmode {
  my $self = shift;
  my $query = $self->query();
  $query->param( 'eid' ) =~ m%^(\d+)$%;
  my $email_id = $1;
  my $email = OTREmail->retrieve( $query->param( 'eid' ) );
  $email->set( 'sent_on'   => $today );
  $email->update();
  $self->push_message(
      -message => "Email sending out now"
    );
  # forking off the email sending...
  if ( my $pid = fork() ) {
    # this is the parent, in which case, we don't need anything else
    # ... Nothing to see here ...
    # ... Move along! ...
  } elsif( defined $pid ) {
    # this is the child
    close( STDOUT ); # so the parent can move on... :)
    my $output = qx%./otr_sendemails.pl $email_id%;
  } else {
    die "Cannot fork off email thread: $!";
  }
  return $self->forward( 'start' );
}

This is great for the user, b/c they get returned immediately to the 'start' runmode while that utility script is running in the background. Yes, there's safety checks in there, too -- I just cleaned it up for better logic following.

- Jason

Christensen, David A. (CHT) wrote:
I think I'm in the same boat...

Anyone out there?  Hello?

[sound of crickets chirping]

David Christensen
Technical Consultant
Manitoba Public Library Services

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 2:09 PM
To: [email protected]
Subject: [cgiapp] Test 2 - is this thing on?



Is this list still active, or has my workplace started to filter this...

I have not received anything since 30/Oct/2006.

Brian
--
Brian T. Wightman            [EMAIL PROTECTED]
Global Data Management       http://pdmwebcg.jci.com/
Johnson Controls, Building Efficiency  (414) 524-4025


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to