Re: How to login from one system (A) into remote system (B) and do a ping to the third system (C) with Perl and CGI !

2009-04-09 Thread kevin liu
I think this depends on what kind of OS you are using. If you are working between Unix like operating system, you could directly use ssh, even remsh to log on to another system. On Thu, Apr 2, 2009 at 1:04 AM, Amit Saxena wrote: > Hello everybody, > > I need to write a Perl CGI script to login f

Re: My confusion about if ( /grep $desc/ )

2009-03-11 Thread kevin liu
gt; > and if what you wish is to remove your own grep process, this command might > do the trick. > > ps -ef | grep hald-runner | grep -v grep > > Tor. > > > kevin liu wrote: > >> Hello everyone: >>When

My confusion about if ( /grep $desc/ )

2009-03-11 Thread kevin liu
Hello everyone: When I am using a pattern match to find my wanted process, things like this: * ps -ef | grep hald-runner root 5006 5005 0 Mar04 ?00:00:00 hald-runner kevin

Re: Perl fork() system call

2009-02-19 Thread kevin liu
Hi Chuck: I don't think exec will do the right thing. According to perldoc.perl.org, exec will stop the current process to execute another one while system will do a fork() first, so system will be your right choice I think. This is a short example I did recently: **

Re: How to speed up two arrays compare.

2009-02-12 Thread kevin liu
Hi All: Thank you all for the help you ever gave.

Re: How to speed up two arrays compare.

2009-02-11 Thread kevin liu
On Wed, Feb 11, 2009 at 11:22 PM, John W. Krahn wrote: > kevin liu wrote: > >> Hi everybody: >> > > Hello, > > > I have two arrays(@nwarray0 and @nwarray1) in my program and i want >> to make sure that >> all the elements in @nwarray0 coul

Re: How to speed up two arrays compare.

2009-02-11 Thread kevin liu
:) Rob Thank you very much for your help. Finally, I got this figured out. [?] On Wed, Feb 11, 2009 at 9:47 PM, Rob Dixon wrote: > kevin liu wrote: > > Hi everybody: > > > > I have two arrays(@nwarray0 and @nwarray1) in my program and i > want > >

How to speed up two arrays compare.

2009-02-11 Thread kevin liu
Hi everybody: I have two arrays(@nwarray0 and @nwarray1) in my program and i want to make sure that all the elements in @nwarray0 could be found in @nwarray1. Here is my implementation: --- foreach my $srctemp ( @n