Loading ...
Sorry, an error occurred while loading the content.

Re : [PBML] How to send error logs to a file...

Expand Messages
  • Sylvain Pascal
    Hello, for your problem, what I do in this kind of case is: open LOGF, logfile.log or die toupitou houhou: $! ; select LOGF; .... thanks to select command,
    Message 1 of 2 , Jul 25, 2007
    • 0 Attachment
      Hello,
      for your problem, what I do in this kind of case is:
      open LOGF, ">logfile.log" or die "toupitou houhou: $!";
      select LOGF;
      ....
      thanks to select command, the standard output (1) is redirected to logfile.log.

      i hope i answer your question,
      see ya
      Sylvain

      ----
      Sylvain PASCAL
      sylvainpascal@...



      ----- Message d'origine ----
      De : cside30 <kpatters@...>
      À : perl-beginner@yahoogroups.com
      Envoyé le : Mardi, 24 Juillet 2007, 22h55mn 11s
      Objet : [PBML] How to send error logs to a file...

      Hi..

      I am trying to pipe the output log/trace from the command, How to I
      direct the output to a file in Perl running in windows xp??

      for example, I want the information from this perl script using this
      command:

      $smtp = Net::SMTP->new( 'pea.nut. com',Hello => 'pea.nut.com' ,Timeout =>
      30,Debug => 1,);

      If you can help me, I appreciate it..





      _____________________________________________________________________________
      Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.