Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

PErl compilation

Steve_617
Advisor

PErl compilation

Does anyobe know if Perl scripts can be convverted to an exe so it can be run on a Windows server without having to install the whole of Active Perl on the servers

Q2
How do I do a ps -ef and df -k on a Windows PC from tha command line.
I need to convert my Solaris - PErl to a Windows NT4 server box

Regards
5 REPLIES
harry d brown jr
Honored Contributor

Re: PErl compilation

On unix you can do a perl compile using perlcc. Maybe there is a windoze version?

ans to question #2: You use the task manager in windows to do a ps -ef and you use file exploiter for df -k. Now if you converted your nt box to linux you would have ps and df available.


live free or die
harry d brown jr
Live Free or Die
Ganesha Sridhara
Honored Contributor

Re: PErl compilation

For Q2:

You can use CYGWIN : http://www.cygwin.com/
Using CYGWIN you can execute most of the unix command on windows.
The ps command reference for CYGWIN is:
http://cygwin.com/cygwin-ug-net/using-utils.html#ps

HTH

Regards
Ganesha Sridhara
Rajeev Shukla
Honored Contributor

Re: PErl compilation

For question 2
run the command called
"tasklist" its a windows command to list all the process

Cheers
Rajeev
A. Clay Stephenson
Acclaimed Contributor

Re: PErl compilation

Another approach would be to install Microsoft's Services for UNIX (SFU). You are aware than NT is obsolete? There's nothing quite like porting to an obsolete platform from the getgo.

Installing ActivePerl is trivially easy; that would be my approach.
If it ain't broke, I can fix that.
H.Merijn Brand (procura
Honored Contributor

Re: PErl compilation

Q1: I never use any system that has no perl installed, but "par" might be your friend:

http://search.cpan.org/~autrijus/PAR-0.87/

It packages your script, all required modules and config into one executable. I never used it myself, so YMMV

Q2: Proc::ProcessTable also works on Cygwin, but I think that if you're targetting real win32 platform (not djgpp or cygwin), http://search.cpan.org/~jdb/libwin32-0.24/ and http://search.cpan.org/~rpagitsch/Win32-Process-List-0.01/ are there to solve this problem

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn