Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / August 2005



Tip: Looking for answers? Try searching our database.

Generating executables for macosx and windows from perl scripts

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Witney - 24 Aug 2005 13:04 GMT
Hi,

I develop my perl scripts on OSX but I need to be able to generate
executables for both OSX as well as windows. They won't need any graphical
stuff, just a double clickable file that will do its stuff.

Any ideas on what's the easiest way of doing this?

Thanks for any help

Adam

Signature

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Morbus Iff - 24 Aug 2005 16:36 GMT
> I develop my perl scripts on OSX but I need to be able to generate
> executables for both OSX as well as windows. They won't need any graphical
> stuff, just a double clickable file that will do its stuff.
>
> Any ideas on what's the easiest way of doing this?

Give the script execute permissions
and rename it with a .command extension?

Signature

Morbus Iff ( you are nothing without your robot car, NOTHING! )
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
O'Reilly Author, Weblog, Cook: http://www.oreillynet.com/pub/au/779
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

Adam Witney - 24 Aug 2005 16:41 GMT
>> I develop my perl scripts on OSX but I need to be able to generate
>> executables for both OSX as well as windows. They won't need any graphical
[quoted text clipped - 4 lines]
> Give the script execute permissions
> and rename it with a .command extension?

Ok for OSX, but this won't work on Windows will it?

Thanks

Adam

Signature

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Doug McNutt - 24 Aug 2005 18:14 GMT
>Give the script execute permissions
>and rename it with a .command extension?

That's OS neXt only, not peecee. So is this:

It's also possible to make a script into a package that will be double-clickable directly from Finder without involving Terminal.app with a .command extension.

<ftp://ftp.macnauchtan.com/Software/PrepAPPL/ReadMe_PrepAPPL.text>  5 kB
<ftp://ftp.macnauchtan.com/Software/PrepAPPL/PrepAPPL.scr>  3 kB

are an attempt at automating that process for 10.3.

It's also possible, and somewhat easier, to make up an AppleScript application which does nothing more than a "do shell script" pointed to a UNIX executable.

As for Windoze; How about Linux on that box?  A Knoppix CD-ROM?

Signature

-->The Creator is the God who provided the void and the rules that matter and energy must live by in order to exist in it. Intelligent designers and engineers create useful stuff while abiding by the rules.<--

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.