Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, April 20, 2024

File: [Platon] / ep / test / Attic / pom2.pl (download)

Revision 1.1.1.1 (vendor branch), Fri Sep 21 19:04:13 2001 UTC (22 years, 7 months ago) by host8


Changes since 1.1: +0 -0 lines

Initialization

#!/usr/bin/perl

use IO::Handle;

select(STDIN); 
$|=1;
select(STDOUT); 
$|=1;
select(STDERR); 
$|=1;

#STDERR->autoflush(1);
#STDOUT->autoflush(2);

print STDOUT "Perl START\n";

$pass_written = 0;

while(<STDIN>)
{
    print STDERR "PERL: " . $_;

    if ($_ =~ /login:/)
    {
        print STDOUT "unknown\n"
    }
    if (($pass_written == 0) and ($_ =~ /login:/))
    {
        print STDOUT "asdfasdfasdfasdf\n";
        $pass_written = 1;
    }
#printf STDOUT "Perl stdout: %s",$_;
printf STDERR "Perl stderr: %s",$_;
}

print STDOUT "Perl STOP\n";

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top