Thread perl GTK2 Ausgabe von tail -f: Ausgabe tail-f in einen textview-widget (5 answers)
Opened by puhvogel at 2005-09-12 23:57

J-jayz-Z
 2005-09-20 12:49
#44554 #44554
User since
2005-04-13
625 Artikel
BenutzerIn
[Homepage] [default_avatar]
vielleicht in etwa so:
Code: (dl )
1
2
3
$main->repeat(1000, sub { $log = qx(tail -f /var/log/messages) });

$main->Label(-textvariable => $log)->pack();
perl -Mstrict -Mwarnings -e 'package blub; sub new { bless {} } sub bar {my $self=shift; $self->{bla}="5065726c2d436f6d6d756e697479"; return $self->{bla};} my $foo=blub->new();print "Hallo ";print pack("H*",$foo->bar()); print "\n"'

http://perl-tutor.de

View full thread perl GTK2 Ausgabe von tail -f: Ausgabe tail-f in einen textview-widget