my $command = "tail -f /var/log/syslog"; if ( open(F, "$command | ") ) { while () { print $_."
"; } close(F);