Re: How to zip all files which are value from awk command ?

2012-07-26 Thread John W. Krahn
Jack Vo wrote: Hi all, Hello, I need to compress many files in a directory on server. I use "awk" and "zip" command to compress these files. By "awk" command, I filter theses file : *# ls -latr | grep iMAP.med0 | awk '{print $9}'* You are doing way too much just to get the correct file na

Re: Multiprocessing script

2012-07-26 Thread punit jain
Thanks everyone. This is really helpful. Major concern was in situation where we use multiprocessing I don't end up creating zombies. If the logic is correct I think I can go ahead with Shlomi's advice to fix other parts. Best Regards.

Re: How to zip all files which are value from awk command ?

2012-07-26 Thread Andy Bach
On Thu, Jul 26, 2012 at 11:00 AM, Andy Bach wrote: > On Thu, Jul 26, 2012 at 5:05 AM, Jack Vo wrote: >> I need to compress many files in a directory on server. I use "awk" and >> "zip" command to compress these files. > > Yeah, awk's not buying you anything here. zip will take file names as > st

Re: How to zip all files which are value from awk command ?

2012-07-26 Thread Bill Stephenson
On Jul 26, 2012, at 5:14 AM, Rob Coops wrote: > On Thu, Jul 26, 2012 at 12:05 PM, Jack Vo wrote: > >> Hi all, >> >> I need to compress many files in a directory on server. I use "awk" and >> "zip" command to compress these files. >> >> By "awk" command, I filter theses file : >> >>> *# ls -l

RE: Multiprocessing script

2012-07-26 Thread Bob McConnell
>> From: Rob Coops [mailto:rco...@gmail.com] >> Sent: Thursday, July 26, 2012 5:26 AM >> To: beginners@perl.org >> Subject: Re: Multiprocessing script >> >> On Thu, Jul 26, 2012 at 11:01 AM, Shlomi Fish >> wrote: >> >> > Hi Punit, >> > >> > a few comments on your code. >> > >> > On Thu, 26 Jul 20

RE: Multiprocessing script

2012-07-26 Thread Bob McConnell
>> From: Rob Coops [mailto:rco...@gmail.com] >> Sent: Thursday, July 26, 2012 5:26 AM >> To: beginners@perl.org >> Subject: Re: Multiprocessing script >> >> On Thu, Jul 26, 2012 at 11:01 AM, Shlomi Fish >> wrote: >> >> > Hi Punit, >> > >> > a few comments on your code. >> > >> > On Thu, 26 Jul 20

PerlSchool

2012-07-26 Thread 'lesleyb'
Hi Just to let people know this is a happening http://perlschool.co.uk/ The first course on 4th August is fully booked but a second is coming up in October. It's run by Dave Cross who has a great deal of knowledge to share. Kind Regards Lesley -- To unsubscribe, e-mail: beginners-unsubscr

Re: How to zip all files which are value from awk command ?

2012-07-26 Thread Jack Vo
Hi all, Sorry about that. Thank and best regards, Jack Vo On 7/26/2012 5:14 PM, Rob Coops wrote: On Thu, Jul 26, 2012 at 12:05 PM, Jack Vo wrote: Hi all, I need to compress many files in a directory on server. I use "awk" and "zip" command to compress these files. By "awk" command, I filt

Re: How to zip all files which are value from awk command ?

2012-07-26 Thread Rob Coops
On Thu, Jul 26, 2012 at 12:05 PM, Jack Vo wrote: > Hi all, > > I need to compress many files in a directory on server. I use "awk" and > "zip" command to compress these files. > > By "awk" command, I filter theses file : > >> *# ls -latr | grep iMAP.med0 | awk '{print $9}'* >> iMAP.med0101_agent.

How to zip all files which are value from awk command ?

2012-07-26 Thread Jack Vo
Hi all, I need to compress many files in a directory on server. I use "awk" and "zip" command to compress these files. By "awk" command, I filter theses file : *# ls -latr | grep iMAP.med0 | awk '{print $9}'* iMAP.med0101_agent.trace.20120726153046.tar.gz iMAP.med0101_agent.trace.201207261529

Re: Multiprocessing script

2012-07-26 Thread Rob Coops
On Thu, Jul 26, 2012 at 11:01 AM, Shlomi Fish wrote: > Hi Punit, > > a few comments on your code. > > On Thu, 26 Jul 2012 10:17:13 +0530 > punit jain wrote: > > > Hi, > > > > Below is my script where alarm is generated after 15 sec and changes the > > global variable in parent from 0 to 1. Is the

Re: Multiprocessing script

2012-07-26 Thread Shlomi Fish
Hi Punit, a few comments on your code. On Thu, 26 Jul 2012 10:17:13 +0530 punit jain wrote: > Hi, > > Below is my script where alarm is generated after 15 sec and changes the > global variable in parent from 0 to 1. Is there any mistake in my > multiprocess approach with time-based stop ? > >