Perl
突然ですが、このコードを走らせている途中で in.txtを tail -f とかしたらどうなるでしょう? $ cat loop.pl #!/usr/bin/perl use strict; my $i = 0; while(1) { $i++; print STDOUT "hello".$i."\n"; print STDERR "hello-error".$i."\n"; sleep(1); } $ …
突然ですが、このコードを走らせている途中で in.txtを tail -f とかしたらどうなるでしょう? $ cat loop.pl #!/usr/bin/perl use strict; my $i = 0; while(1) { $i++; print STDOUT "hello".$i."\n"; print STDERR "hello-error".$i."\n"; sleep(1); } $ …