Re: [PBML] How to send error logs to a file...
- I have no experience on Net::SMTP, but I think there are two solutions here
depending on how you wanna your script work.
If it is just a small script and the whole purpose is to throw out smtp log,
it is easier to let os handle the work of writing to file, for example
C:\your_script > log.file or
C:\your_script >> log.file
If it's a complicated script, you probably need look at file handle which is
sort of interface between perl and os files.
Hope this helps!
On 7/24/07, cside30 <kpatters@...> wrote:
> 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
> $smtp = Net::SMTP->new('pea.nut.com',Hello => 'pea.nut.com',Timeout =>
> 30,Debug => 1,);
> If you can help me, I appreciate it..
[Non-text portions of this message have been removed]