Thanks for the quick reply.
This works great.
How would you suggest modifying this so that I can call this in a procedure to tail the file from the last point the file was tailed. For example:
tail_file($remote_server);
# Do some tests -
@result = tail_file($remote_server);
# Now @result has just the changes caused by the test.