Antwort: [Perl-unix-users] Parallel Command Execution

2003-12-11 Thread Georg . Mavridis
Hi, I am not sure, but adding an & at the end of the command should put it into background i guess. I mean using system ("$scancmd &") instead of system ($scancmd) HTH George ___ Perl-Unix-Users mailing list [EMAIL PROTECT

Re: [Perl-unix-users] Parallel Command Execution

2003-12-10 Thread Anthony Ettinger
I ran into the same problem when scanning a large list of ip addresses. The problem with just using fork() is that you can kill the server with too many processes. I used Parallel::ForkManager (from cpan). Let's you specify how many simultaneous forks you want to run, so as not to bork the server

Re: [Perl-unix-users] Parallel Command Execution

2003-12-10 Thread Travis Hoyt
Wouldn't the fork() command handle this?wjnorth <[EMAIL PROTECTED]> wrote: Group,This will probably be an easy question. I have a script that takes a comma delimited string of IP addresses as an argument and then proceeds to nmap port scan each IP address. The problem is, I don't want to loop throu

[Perl-unix-users] Parallel Command Execution

2003-12-10 Thread wjnorth
Group, This will probably be an easy question. I have a script that takes a comma delimited string of IP addresses as an argument and then proceeds to nmap port scan each IP address. The problem is, I don't want to loop through each string in a foreach loop, and then execute the system call aft