I am trying to start a script within another script. I am running a windows computer and testing some firewall problems that we might have on some of our computers. I am pinging some computers.
I want to part system($arg . $rec)to start in a new command window. The reason for this is that this new script has some code that can hang and I want to be able to terminat this command window without killing the main script.
thanks
Timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!
Code:
use strict;
use String::Strip;
my $read_list = "U:\\scripts\\Perl\\scs_rights\\computers.txt";
open(READ, $read_list);
my $arg = 'U:\\scripts\\Perl\\scs_rights\\find_rights.pl ';
my $rec;
while ($rec = <READ>)
{
my $out = system("ping " . $rec . " -n 1");
if ($out != '256')
{
system($arg . $rec)
}
}
close READ;
I want to part system($arg . $rec)to start in a new command window. The reason for this is that this new script has some code that can hang and I want to be able to terminat this command window without killing the main script.
thanks
Timgerr
-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!