Gossamer Forum
Home : General : Perl Programming :

Re: [Andy] capturing FTP responses

Quote Reply
Re: [Andy] capturing FTP responses In reply to
Hm... just found this on Google, seems to work:

Code:
my $log = $window->Text()->pack;

tie(*STDERR, 'Tk::Text', $log);

$SIG{'__WARN__'} = sub { print STDERR @_ };

I'll have to see if I can cut out all the junk first and have just the responses. Looks like it should be posible since a copy of STDERR seems to be stored in @_;

Philip
------------------
Limecat is not pleased.
Subject Author Views Date
Thread capturing FTP responses fuzzy logic 4659 Aug 29, 2003, 12:11 AM
Thread Re: [fuzzy logic] capturing FTP responses
Andy 4519 Aug 29, 2003, 6:08 AM
Thread Re: [Andy] capturing FTP responses
fuzzy logic 4547 Aug 29, 2003, 8:32 AM
Post Re: [fuzzy logic] capturing FTP responses
fuzzy logic 4478 Aug 31, 2003, 10:29 PM