I don't see what I am doing wrong here. I am trying to print to the
filehandle LINOUT but nothing is being printed to the file.
Ultimately I want to monitor the input file and when it is written to I
want to take the update and put into another file for processing.


#!/usr/bin/perl
use strict;
use warnings;

        open(INFILE, "tail -f /tmp/lin_tape.errorlog |") or die "can't
open file: $!";
        open (LINOUT, ">", "/tmp/linout") or die "lin tape out file
could not be opened :$!";
        my $line;
        while ( $line =  <INFILE> )
        {
        print "$line\n";
       print LINOUT "$line";
        print LINOUT  "hey\n";
        }

close(INFILE);
close(LINOUT);

Reggie Johnson
TSM Admin
212 647-2077
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or 
proprietary, and if you are not an intended recipient, please notify the 
sender, do not use or share it and delete it. Unless specifically indicated, 
this message is not an offer to sell or a solicitation of any investment 
products or other financial product or service, an official confirmation of any 
transaction, or an official statement of Merrill Lynch. Subject to applicable 
law, Merrill Lynch may monitor, review and retain e-communications (EC) 
traveling through its networks/systems. The laws of the country of each 
sender/recipient may impact the handling of EC, and EC may be archived, 
supervised and produced in countries other than the country in which you are 
located. This message cannot be guaranteed to be secure or error-free. This 
message is subject to terms available at the following link: 
http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you 
consent to the foregoing.
--------------------------------------------------------

Reply via email to