should be mostly OS independent. I however would have the
printing to STDOUT and to a log. The reason I would choose a log versus a pipe to the other script is so the secondary script can be stopped and started at will without affecting the primary script. The input for the monitoring script would then use
to monitor the progress of the log. I guess the only thing then would to remember to set $| to auto-flush.