How to kill child process running in background

2011-03-11 Thread Narasimha Madineedi
Hi, I have 2 shell scripts which runs parallely. And each script runs 2 child processes simultaniously one after the another. i have given timeout to run 8hrs for each shell script. if it exceeds time limit it has to kill the child processes of the process which exceeds time limit but its killing

How do I get the content-disposition of a MIME::Entity part

2011-03-11 Thread Ramprasad Prasad
I have a simple code that gets all image parts of a message foreach my $part($entity->parts){ next if ($part->effective_type !~ m{image}); push(@images,$part); ... } But I want to get only the inline images and not the attached images How can I achieve this ? $part->content_disposition(

Re: Win32::Job, wait until timeout, but capture all output

2011-03-11 Thread Catherine Bundy
On Feb 3, 10:36 am, filip.sne...@gmail.com (Filip Sneppe) wrote: > Hi, > > I am writing a script that executes external command that may hang. > I want to capture all output produced by the external command and > continue with my perl code after a certain execution timeout for the > external progra

help with array elements

2011-03-11 Thread ashwin ts
Hi, I am a newbie to perl. I have an array which has few elements like '1,2,3,4,2,3,1,2,1,1,1,4,6,7' i need to know how many times each element has occurred in the same array. for example 1-5 times 2-3 times... could some one throw some light on how i can do this. thanks in advan