J
Johnny Google
I need to use a tail like functionality on a Win32 perl Tk app.
The tail modules (File::Tail, etc) are not ported for Win32.
Someone on another list referred me to the tail function from PPT (Perl
Power Tools). This is a command line file function and not a module...
it seems to do the job when run from the command line.
When trying to implement it as in my other post on fileevent:
open(H, "c:/perl/bin/tail -f -n 25 $pipe_in|") or die "Nope:
$OS_ERROR";
$mw->fileevent(H, 'readable', [\&fill_text_widget, $t]);
- it not only does not work - it leaves the perl process running after
I kill the app.
I have noticed that it appears to trap the interrupt signal - why I
have no idea! - but this makes it hard to kill as a command line and I
think it is what is causing it to continue on after my perl app dies.
I also can't figure out why it isn't working to fill my widget with the
file data...
Any clues - has anyone used this tail function in a perl script before?
In a Tk app? Any other Tail-like functions, modules, Win32 functions?
Thanks,
John
The tail modules (File::Tail, etc) are not ported for Win32.
Someone on another list referred me to the tail function from PPT (Perl
Power Tools). This is a command line file function and not a module...
it seems to do the job when run from the command line.
When trying to implement it as in my other post on fileevent:
open(H, "c:/perl/bin/tail -f -n 25 $pipe_in|") or die "Nope:
$OS_ERROR";
$mw->fileevent(H, 'readable', [\&fill_text_widget, $t]);
- it not only does not work - it leaves the perl process running after
I kill the app.
I have noticed that it appears to trap the interrupt signal - why I
have no idea! - but this makes it hard to kill as a command line and I
think it is what is causing it to continue on after my perl app dies.
I also can't figure out why it isn't working to fill my widget with the
file data...
Any clues - has anyone used this tail function in a perl script before?
In a Tk app? Any other Tail-like functions, modules, Win32 functions?
Thanks,
John