jbl_bomin has asked for the wisdom of the Perl Monks concerning the following question:
=================================== #!/usr/bin/perl -w use strict; print "Begin...\n"; for ( my $i = 0; $i < 5; $i++ ) { print "$i...\n"; sleep 2; } ===================================
$ ./populate.pl > data.txt&
$ tail -f data.txt
..and then do a 'tail -f' on the data.txt file, I can see it's content while the bash script is writing to it.while [ 1 ]; do echo "some text..."; done > data.txt&
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirecting perl output on the command line
by marto (Cardinal) on Aug 02, 2008 at 18:07 UTC | |
|
Re: Redirecting perl output on the command line
by pjotrik (Friar) on Aug 02, 2008 at 18:09 UTC | |
|
Re: Redirecting perl output on the command line
by BrowserUk (Patriarch) on Aug 02, 2008 at 18:07 UTC | |
|
Re: Redirecting perl output on the command line
by Illuminatus (Curate) on Aug 03, 2008 at 22:28 UTC |