Hello,
Sorry if I am being really stupid here but surely the line:
if ($child == 0) { #child
should actualy be:
if ($child != 0) { #child
Surely the child should run if it has a PID not equal to 0.
If the fork() command has worked the $child variable should have a PID which is not ever...
In addition let me explain:
Basically reading each of the two files to compare into an array @file1 and @file2.
The start a loop using the first file
"foreach $line (@file1)"
This says for each entry in the array read the data into $line variable, then use $line to compare with the...
Hello,
I would suggest something ike the following:
open FILE1, "<file1" or
die "Couldn't open file1\n";
@file1 = <FILE1>;
open FILE2, "<file2" or
die "Couldn't open file2\n";
@file2 = <FILE2>;
open FILE3, ">file3" or
die "Couldn't open file3\n";
foreach $line (@file1) {
if ($line...
Hello,
I have got a Normal Listbox that I want to replace the values in when I recieve an SNMP trap, I can get the trap but I cannot for the life of me find any info on how to change a value in a list box without first deleting it. The program I am writing has several threads and I have got it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.