Ok, I've tried all of these and still no joy.  It seems like my .bat file is not being called.  I added calls to Net::Syslog to it, too, and nothing.  When I run it at the command prompt, though it works fine.

So, I replicated the mytest.bat and mytest.pl (from below) EXACTLY on my system and I get no errors in the log, but also no mytest.log created.  Same as above, running mytest.bat from the command line works fine.

And yes, I have restarted the SMTP service each time I've changed the spec for the delivery app.  

Any ideas Terry?

-Scott Huston

btw: program alias didn't work, either.

[EMAIL PROTECTED] dot com

[EMAIL PROTECTED] wrote on 10/16/2003 04:31:38 AM:

> Kevin,
>
> Wednesday, October 15, 2003 you wrote:
> KB> Did you try to use perl.exe in your bat file
> KB> perl.exe yourperlscript.pl %1
>
>     Yes, on my system the following works:
>     ------------------
>     1) c:\wsh\mytest.bat contains:
>        ===========================
>        c:\perl\bin\perl.exe c:\wsh\mytest.pl %1
>
>     2) c:\wsh\mytest.pl contains:
>        ===========================
>        #!C:/perl/bin
>        my ($fp) = @ARGV;
>        open(OUT,">c:/wsh/mytest.log");
>        print OUT "hello world: [$fp]\n";
>        close(OUT);
>        unlink $fp if -e $fp;
>        exit;
>
>     3) define program alias as c:\wsh\mytest.bat
>
>     4) send message to program alias:
>        a) mytest.log contains:
>           "hello world: [c:\IMail\spool\tmp1B60.tmp]"
>        b) tmp1b60.tmp is deleted from spool
>
>        
> I never found a direct way to execute perl from a program alias.  I'm
> not saying there isn't any way, only that I never found one.  I tried
> a lot of combinations.  You can make a wrapper .exe program and call a
> perl program from it but I couldn't honestly see where that was better
> than just using the .bat file.
>
> Terry Fritts
>
>
>
>
> To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
> List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to