in reply to Re: console output invisible after script exit
in thread console output invisible after script exit

thanks for the reply! unfortunately $|=1 did not work. i set it first at the top of the script, that didn't work, so then i put it straight into the child code (right after #child).

Oddly enough it is only when i actually run $np->parsescan($nmap_path, $nmap_args, $ipaddress);

it doesn't look like it is an issue with the print statement because if i take it out the issue still happens. (i've been eliminating lines one by one which is how i got to the parsescan line being the problematic line but just in children)

Replies are listed 'Best First'.
Re^3: console output invisible after script exit
by LanX (Saint) on Jan 16, 2022 at 02:53 UTC
    I think you should file a bug report and talk to the author.

    A quick look into the source showed that he is shelling out his calls, and this seems to collide with parallel processes. This might also explain the dependency on the shell...

    Just a guess ... 🤷🏻‍♂️

      that would totally make sense -- i tried doing an open and had the same issue. i'll talk to the author. thanks for finding that! this issue was driving me nuts