04-20-2010
Converting perl to exe
Hello All,
I want to convert .pl to .exe with all include libraries like:
WIN32/OLE.....
Please suggest me how i will proceed for this....
10 More Discussions You Might Find Interesting
1. Programming
At time of installation I have to open the resource. and i have to insert a string serial number in the exe.
please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies
2. Shell Programming and Scripting
How do i turn my TK perl program into an EXE using perl 2 exe.
I did it as normal but the program dont run, it shuts itslef down (2 Replies)
Discussion started by: perleo
2 Replies
3. Shell Programming and Scripting
I have a perl code that runs like
Code I
sub p
{
if ($d >= $D) {return}
printf "%3s"x$d++," ";
printf "%s%s\n",$_,$h{$_}?" ** ":"";
if (!$h{$_})
{
$h{$_}=1;
map {p($_)} @{$s{$_}}
}
$d--
}
($Set,$Job,$Num,$D) = (@ARGV);
map {shift} 0..3; (8 Replies)
Discussion started by: zainravi
8 Replies
4. Shell Programming and Scripting
Hi, how to create an exe out of a perl script.Even if it is possible how secure is it? Are there other softwares to decryprt a perl exe and get the source code out of it ? (7 Replies)
Discussion started by: Anuj8584
7 Replies
5. UNIX for Advanced & Expert Users
Hello,
I have an AIX 5.3 system and i created a script to get the last login of users.
The script goes like this:
LAST_LOGIN=`lsuser -a time_last_login $cur_user`
TIME_LOGIN=`perl -e 'print scalar localtime("$LAST_LOGIN")'`
Actually what i do in these two lines is to set a variable... (2 Replies)
Discussion started by: omonoiatis9
2 Replies
6. Shell Programming and Scripting
Hi friends,
I'm very new to perl and got some requirement.
I've input numbers which has size of 17 characters like below:
-22500.0000000000
58750.00000000000
4944.000000000000
-900.000000000000
272.0000000000000
I need to convert these numbers from negative to positive and positive... (4 Replies)
Discussion started by: ganapati
4 Replies
7. Programming
Hi Experts,
Good morning.
I am trying to convert my hello.py to hello .exe file.
I followed the steps as mentioned in the documentation but getting errors in the end. Please help.
What I did as below--
Created hello.py file
print ("Hello world!")
raw_input('')
Then... (0 Replies)
Discussion started by: shekhar_4_u
0 Replies
8. Shell Programming and Scripting
I am working on converting shell to Perl script. In shell we have built in function
trap
Do you know alternative in Perl or actually we don't need it?
Thanks for contribution (3 Replies)
Discussion started by: digioleg54
3 Replies
9. UNIX for Beginners Questions & Answers
Hello. I'm trying to convert an awk script I wrote to perl (which I just started self-teaching). I tried the a2p command but I couldn't make sense of most of it.
Here was the awk code:
BEGIN{
FS = ","
print "NAME\tLOW\tHIGH\tAVERAGE"
a=0
}
{
if(a==0){
a+=1 (1 Reply)
Discussion started by: Eric7giants
1 Replies
10. UNIX for Beginners Questions & Answers
Hello. I'm currently teaching myself Perl and was trying to turn an awk code that I had written into Perl. I have gotten stuck on a particular part and a2p has not helped me at all. The task was to take a .csv file containing a name, assignment type, score and points possible and compute it into a... (1 Reply)
Discussion started by: Eric7giants
1 Replies
LEARN ABOUT PHP
com_get_active_object
COM_GET_ACTIVE_OBJECT(3) 1 COM_GET_ACTIVE_OBJECT(3)
com_get_active_object - Returns a handle to an already running instance of a COM object
SYNOPSIS
variant com_get_active_object (string $progid, [int $code_page])
DESCRIPTION
com_get_active_object(3) is similar to creating a new instance of a "COM" object, except that it will only return an object to your script
if the object is already running. OLE applications use something known as the " Running Object Table" to allow well-known applications to
be launched only once; this function exposes the COM library function GetActiveObject() to get a handle on a running instance.
PARAMETERS
o $progid
-$progid must be either the ProgID or CLSID for the object that you want to access (for example Word.Application).
o $code_page
- Acts in precisely the same way that it does for the "COM" class.
RETURN VALUES
If the requested object is running, it will be returned to your script just like any other COM object.
ERRORS
/EXCEPTIONS
There are a variety of reasons why this function might fail, the most common being that the object is not already running. In that situa-
tion, the exception error code will be MK_E_UNAVAILABLE; you can use the getCode method of the exception object to check the exception
code.
NOTES
Warning
Using com_get_active_object(3) in a web server context is not always a smart idea. Most COM/OLE applications are not designed to
handle more than one client concurrently, even (or especially!) Microsoft Office. You should read Considerations for Server-Side Au-
tomation of Office for more information on the general issues involved.
PHP Documentation Group COM_GET_ACTIVE_OBJECT(3)