in reply to Re: launch long running background program and watch final progress
in thread launch long running background program and watch final progress

Hmm, your first question sounded like you were talking about shell job control (background and foreground process groups), but it seems you're just spawning a process and want to read its output. Looking at your code, I don't see any particular reason to use File::Tail... you could've just opened temp/stdout.txt as usual (with the open function) and read it line by line? Anyway, people normally use FIFOs for that, you can make one with POSIX::mkfifo, perlipc has an example.

Replies are listed 'Best First'.
Re^3: launch long running background program and watch final progress
by Anonymous Monk on Apr 22, 2016 at 20:49 UTC
    , I don't see any particular reason to use File::Tail
    oh, I see, the other process is constantly appending to the file and you don't want to get EOF.
      Yes, I think that EOF is the issue and why my 2nd idea won't work. But inotify will work. If file is modified, read it and see what happened. Don't continually poll for different content.