Re: how to choose multiplexing methods in perl

2009-07-14 Thread Jenn G.
On Wed, Jul 15, 2009 at 10:38 AM, XUFENG wrote: > Hi all, > I use IO::Socket::INET to program server-client communication.When trying to > serve some concurrency,I have some options: >        1, multi-threading >        2, one daemon process with IO::Epoll > which is better? Nothing is absolute b

how to choose multiplexing methods in perl

2009-07-14 Thread XUFENG
Hi all, I use IO::Socket::INET to program server-client communication.When trying to serve some concurrency,I have some options: 1, multi-threading 2, one daemon process with IO::Epoll which is better? -- XUFENG 2009-07-15 -- To unsu

User/Password validation

2009-07-14 Thread Vaishak S
There are almost 10 users who are trying to access a CGI web page. I need the authentication part to be enabled for these users since the data should not be seen by each other and should be shown only for these users. I was trying to do a user/pass logon screen validated against XML file. XML fil

Re: one or two alarm(0)

2009-07-14 Thread Shawn H. Corey
On Tue, 2009-07-14 at 10:58 -0400, Chas. Owens wrote: > You just removed a major feature of the code. Do you want to explain > why your paranoia has lead you to remove the ability to override the > default $timedout and $error handlers? I could understand if your > paranoia lead you to check to m

Re: one or two alarm(0)

2009-07-14 Thread Chas. Owens
On Tue, Jul 14, 2009 at 07:01, Shawn H. Corey wrote: > On Mon, 2009-07-13 at 23:49 -0400, Chas. Owens wrote: >> #!/usr/bin/perl >> >> use strict; >> use warnings; >> >> sub timeout { >>         my ($wait, $code, $timedout, $error) = (@_, >>                 sub { warn $@ }, sub { die $@ }); > > # I'

RE: perl query

2009-07-14 Thread David Christensen
Rajini Naidu wrote: > `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> > $log_our_depot`; > `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> > $log_ourdepot_comp`; > Here I am outputting the same command line output to different > logfile. Why not use tee(1)?

Re: perl query

2009-07-14 Thread John W. Krahn
Rajini Naidu wrote: Hi, Hello, I have the below commands in the script. `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log_our_depot`; `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log_ourdepot_comp`; Here I am outputting the same command line ou

Re: one or two alarm(0)

2009-07-14 Thread Shawn H. Corey
On Mon, 2009-07-13 at 23:49 -0400, Chas. Owens wrote: > #!/usr/bin/perl > > use strict; > use warnings; > > sub timeout { > my ($wait, $code, $timedout, $error) = (@_, > sub { warn $@ }, sub { die $@ }); # I'm just too paranoid to let this pass my ( $wait, $code )

Re: perl query

2009-07-14 Thread Eric Veith
The backticks work just as they would in a shell script. You're using them the wrong way in your example, anyways. my $output = `command param`; my $rc = system('command', 'param' From: Rajini Nai

perl query

2009-07-14 Thread Rajini Naidu
Hi, I have the below commands in the script. `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log_our_depot`; `$swlist -l bundle -a revision -a architecture -s $t | $grep $n >> $log_ourdepot_comp`; Here I am outputting the same command line output to different logfile. Is th