in reply to Re: run a Perl program in Windows Task Scheduler
in thread run a Perl program in Windows Task Scheduler

I found that: c:\perl64\bin\perl.exe <program>.pl works OK. Now I have another problem...looks like I can't send email from the program run by the scheduler. thanks for your suggestion
  • Comment on Re^2: run a Perl program in Windows Task Scheduler

Replies are listed 'Best First'.
Re^3: run a Perl program in Windows Task Scheduler
by PerlSufi (Friar) on Jul 26, 2013 at 17:22 UTC
    Hi there,
    I have had the opportunity of having to do this recently. Does the script automatically send email without the windows task scheduler? If we see your code we might be able to help more. I have used MIME::Entity and MIME::Lite to send emails via perl script
    my $mail = MIME::Lite->new( From=> 'me@me.com, To=> 'someone@cool.com', Subject=> "Hello email ", Type=>'multipart/mixed' ); $mail->attach( Type => 'application/x-tar', Encoding => 'base64', Path => 'C:\path\to\file.tar', Filename => "file.tar" ); MIME::Lite->send('smtp','server.smtp.com',Debug=>0); $mail->send;
      Hi, I'm having a tremendous amount of difficulty trying to get Task Scheduler to trigger my Perl script using Mail::Sender to send email with text attachments. It works WITHOUT Task Scheduler (simple cmd command of "perl mytest.pl). Frankly, Windows SUCK!

        Hi, I'm having a tremendous amount of difficulty trying to get Task Scheduler to trigger my Perl script using Mail::Sender to send email with text attachments. It works WITHOUT Task Scheduler (simple cmd command of "perl mytest.pl). Frankly, Windows SUCK!

        Great, have a nice day