Re: Run perl scripts in Windows

2011-10-21 Thread Rajneesh Gadge
Thanks Natxo that was really informative :)


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Run perl scripts in Windows

2011-10-18 Thread Remy Guo
hi all,
I have a Perl script in Windows but my system administrator doesn't allow me
to install ActivePerl nor i guess anything that will change rigistry on the
machine.
is there any other way to run the script?

Thanks..

Remy


Re: Run perl scripts in Windows

2011-10-18 Thread Shlomi Fish
ׁHello Remy,

On Tue, 18 Oct 2011 09:05:41 -0400
Remy Guo rollingst...@gmail.com wrote:

 hi all,
 I have a Perl script in Windows but my system administrator doesn't allow me
 to install ActivePerl nor i guess anything that will change rigistry on the
 machine.
 is there any other way to run the script?
 

Yes, there are several ways:

1. One is to use the Portable version of Strawberry Perl:

http://strawberryperl.com/releases.html

2. The second one is to use PAR to pack the script into a self-contained
executable:

http://par.wikia.com/wiki/Main_Page



Maybe there are other ways that I cannot think of now.

Regards,

Shlomi Fish

-- 
-
Shlomi Fish   http://www.shlomifish.org/
Escape from GNU Autohell - http://www.shlomifish.org/open-source/anti/autohell/

Chuck Norris does not code; when he sits at a computer, it just does whatever
he wants. — Kattana on Freenode’s #perl6 .

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/




Re: Run perl scripts in Windows

2011-10-18 Thread Igor Dovgiy
Hello Remy,

I guess you may either convert this script with something like perl2exe (or
similar solutions),
or use the portable version of Strawberry Perl -
http://strawberryperl.com/download/5.12.3.0/strawberry-perl-5.12.3.0-portable.zip
- to run it.

-- iD

2011/10/18 Remy Guo rollingst...@gmail.com

 hi all,
 I have a Perl script in Windows but my system administrator doesn't allow
 me
 to install ActivePerl nor i guess anything that will change rigistry on the
 machine.
 is there any other way to run the script?

 Thanks..

 Remy



Re: Run perl scripts in Windows

2011-10-18 Thread Natxo Asenjo
On Oct 18, 2011 3:07 PM, Remy Guo rollingst...@gmail.com wrote:

 hi all,
 I have a Perl script in Windows but my system administrator doesn't allow
me
 to install ActivePerl nor i guess anything that will change rigistry on
the
 machine.

You do not need to install anything on that host. You can install the msi in
another windows host and copy the c:\perl folder (if you choose to standard
location) to the host where you need to run the script.

After doing that, you can run your Perl scripts from a cmd prompt. Open
cmd.exe and in there type the path to perl.exe (if you have copied it to
c:\perl, it will be c:\perl\bin\perl.exe) and the path to your script.

So if you have your script in d:\scripts\test.pl, you type in cmd.exe:

c:\perl\bin\perl.exe d:\scripts\test.pl

If you want to associate the extension pl with perl.exe, then you need to
follow the instructions in here:

http://technet.microsoft.com/en-us/library/bb490912.aspx

When you install the active state msi, those things are automatically done
for you, that is the only difference.

-- 

natxo


Re: Run perl scripts in Windows

2011-10-18 Thread frank cui
i believe most group policy deployments doesn't allow personal created files
on root directory of system disk.

On Tue, Oct 18, 2011 at 5:16 PM, Natxo Asenjo natxo.ase...@gmail.comwrote:

 On Oct 18, 2011 3:07 PM, Remy Guo rollingst...@gmail.com wrote:
 
  hi all,
  I have a Perl script in Windows but my system administrator doesn't allow
 me
  to install ActivePerl nor i guess anything that will change rigistry on
 the
  machine.

 You do not need to install anything on that host. You can install the msi
 in
 another windows host and copy the c:\perl folder (if you choose to standard
 location) to the host where you need to run the script.

 After doing that, you can run your Perl scripts from a cmd prompt. Open
 cmd.exe and in there type the path to perl.exe (if you have copied it to
 c:\perl, it will be c:\perl\bin\perl.exe) and the path to your script.

 So if you have your script in d:\scripts\test.pl, you type in cmd.exe:

 c:\perl\bin\perl.exe d:\scripts\test.pl

 If you want to associate the extension pl with perl.exe, then you need to
 follow the instructions in here:

 http://technet.microsoft.com/en-us/library/bb490912.aspx

 When you install the active state msi, those things are automatically done
 for you, that is the only difference.

 --

 natxo