develooper Front page | perl.beginners | Postings from February 2002

Re: perl2exe

Thread Previous | Thread Next
From:
Garyl Erickson
Date:
February 27, 2002 16:34
Subject:
Re: perl2exe
Message ID:
3C7D774F.E7302EDD@attbi.com
If you're trying to run a Unix perl script on the Unix system, you could
probably create an MS-DOS batch file that logs onto the remote system,
then runs your perl script there, or runs a shell script wrapped around
the perl script.

On the other hand, if the script is runnable directly on the Windows
system -- i.e., does something with files on the Windows system, and if
you have a Unix-like shell (e.g. cygwin's bash) available to the Windows
system, and access to the Unix filesystem from Windows, you could wrap
an MS-DOS batch file around it like this:
  bash -c "<path to Windows perl stored on Unix system or on windows
network> -w <path to perl script stored on Unix system> [<args...>] 2>&1
| less".

If you don't care about looking at the text output, you could probably
even skip the bash and just put "<path to perl> -w <path to perl
script>" in the batch file.

In either case, your users could run the batch file from a DOS window,
or you can create a shortcut to the batch file and an icon for them to
click on.

Garyl Erickson


Craig Williams wrote:
> 
> Does anyone know - will perl2exe (or a different package to create an > .exe) allow a perl script to be launched from windows explorer EVEN 
> THOUGH the script is written for unix (and is sitting on a unix 
> netowrk drive)?  . . .

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About