I tried that, too, with no joy.  I didn't reboot after that change though, and as this is Windows...

-Scott Huston

[EMAIL PROTECTED] wrote on 10/16/2003 10:05:27 AM:

> To make it run as an executable, change the environment variables on the
> server:
>
> Make sure C:\perl\bin is in your PATH
> Add .pl to PATHEXT
>
> Now you can just type "example.pl" at a command prompt and it will run
> without passing it to the perl executable.  In other words, example.pl is
> now an executable file.
>
>
> Regards,
>  
> Dan Horne, CCNA
> Web Services Administrator
> TAIS Web
> Wilcox World Travel & Tours
> [EMAIL PROTECTED]
>
> ----------------------------------------------------
> CONFIDENTIALITY NOTICE:
> This email message, including any attachments, is for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or distribution is
> prohibited. If you are not the intended recipient, please contact the sender
> by reply email and destroy all copies of the original message.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Smart Business Lists
> > Sent: Thursday, October 16, 2003 7:32 AM
> > To: Kevin Bilbee
> > Subject: Re: [IMail Forum] Custom SMTP delivery application
> >
> >
> > 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/
> >
>
>
> 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