From: H P. <hp...@gm...> - 2009-08-27 15:37:56
|
I hacked together some network notification code that uses the Growl CPAN modules to send messages to my macs. I fork the processes, so it doesn't hang the main loop. Since prowl is a mac growl plug in, it would be interesting to see if the Growl stuff can send to prowl (I have a iPod touch, so this would be useful for me). I see there is also a windows growl client, so this might be useful as an expandible method for MH notifications. Let me know if you're interested in looking at this. It's a bit of a kludge, so I'd appreciate help to make it more robust. I'd also be curious if there is additional interest in this type of functionality from others. On Thu, Aug 27, 2009 at 8:29 AM, Ralf Klüber <r...@lf...> wrote: > Hi guys > > I would love to have the possibilty to send messages to my iPhone > using prowl. It should be pretty straight forward. However I was not > able to recover from the LWP::Useragent Request. > > try to create a script make it executable and run the following (I am > already in debugging mode. Thats why no perl related code in here): > [code] > #!/usr/bin/perl -w > # noloop=start > my $Startup = 1; > # noloop=stop > > if ($Startup) { > print "########## PROWL Start ######################\n"; > use LWP::UserAgent; > > my $userAgent = LWP::UserAgent->new; > my $requestURL = "http://ralfathome.dyndns.org/apache2-default/"; > > print ">>>>>>>>>> before request\n"; > my $request = HTTP::Request->new(GET => $requestURL); > my $response = $userAgent->request($request); > print ">>>>>>>>>> after request\n"; > print ">>>>>>>>>> " . $response->content . "\n"; > print ">>>>>>>>>> end of prowl\n"; > print "########## PROWL End ######################\n"; > } > [/code] > > It will show some easy web content (the default apache web site on my > linux box at home). > > If you put the same code sniplet into MH code directory and start Mh > it will die exactly at this line > [code] > my $response = $userAgent->request($request); > [/code] > > The request is executed, however the code never recovers and comes > back. Try it out yourself. If you look with top MH allocates more and > more RAM. > > Any hints? > -- > r...@lf... > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ________________________________________________________ > To unsubscribe from this list, go to: > http://sourceforge.net/mail/?group_id=1365 > > |