in reply to Re^3: Synchronizing Multiple System Processes
in thread Synchronizing Multiple System Processes

Just remove that & if you have it.
No. I don't have &.
all I can say with reasonable certainity is that output.txt does not exist.
Yes it is true. But it is because script1.pl hasn't yet finished in creating output.txt

---
neversaint and everlastingly indebted.......

Replies are listed 'Best First'.
Re^5: Synchronizing Multiple System Processes
by shmem (Chancellor) on Apr 13, 2007 at 09:42 UTC
    If script1.pl returned without having finished creating output.txt, then it didn't create that file.

    What happens if you explicitly close the filehandle for output.txt in script1.pl?

    close OUT or die "Can't close filehandle OUT properly: $!\n";

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}