<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Converting/executing a PERL script in binaries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-executing-a-perl-script-in-binaries/m-p/3012873#M718751</link>
    <description>Ther first thing that I notice is that your Perl is expecting to read command line arguments but you haven't supplied them. I don't know what you are trying to accomplish since you still have to use the Perl source -- this really isn't a standalone executable.&lt;BR /&gt;&lt;BR /&gt;A rather good Perl to native convertor is &lt;BR /&gt;Perl2exe available rather cheaply from &lt;A href="http://www.indigostar.com." target="_blank"&gt;www.indigostar.com.&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 03 Jul 2003 19:54:33 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-07-03T19:54:33Z</dc:date>
    <item>
      <title>Converting/executing a PERL script in binaries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-executing-a-perl-script-in-binaries/m-p/3012871#M718749</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;I'm wanting to execute my PERL script in a binary/executable form. I wrote a C wrapper to do so. However, when executing the binary code produced by the wrapper, it produced the warning message as:&lt;BR /&gt;1073741825 version 1 is not available &lt;BR /&gt;ELEMENTS: 1073741826    1   udp    756            program 1073741826 version 1 is not available &lt;BR /&gt;1073741826 &lt;BR /&gt; 1 &lt;BR /&gt; udp &lt;BR /&gt; 756 &lt;BR /&gt; program &lt;BR /&gt; &lt;BR /&gt;1073741826 version 1 is not available &lt;BR /&gt;ELEMENTS: 1073741827    1   udp    813            program 1073741827 version 1 is not available &lt;BR /&gt;1073741827 &lt;BR /&gt; 1 &lt;BR /&gt; udp &lt;BR /&gt; 813 &lt;BR /&gt; program &lt;BR /&gt; &lt;BR /&gt;1073741827 version 1 is not available &lt;BR /&gt;Sending mail now ...&lt;BR /&gt;The flags you gave make no sense since you're not sending mail.&lt;BR /&gt;&lt;BR /&gt;However, when executing just the script itself, the script did not produce the warning "The flags you gave make no sense since you're not sending mail. ". The output is shown below:&lt;BR /&gt;pgadm1@penang[13]% file-61.pl names&lt;BR /&gt;/pgadm1/usr1/adm/cleaw/script/test/WEIRDER opened successfully &lt;BR /&gt;$names[0]=cleaw &lt;BR /&gt;$list= cleaw@pinang.png.intel.com &lt;BR /&gt;HERE ...&lt;BR /&gt;ELEMENTS: 1073741824    1   udp    661            program 1073741824 version 1 is not available &lt;BR /&gt;ELEMENTS: 1073741825    1   udp    899            program 1073741825 version 1 is not available &lt;BR /&gt;ELEMENTS: 1073741826    1   udp    756            program 1073741826 version 1 is not available &lt;BR /&gt;ELEMENTS: 1073741827    1   udp    813            program 1073741827 version 1 is not available &lt;BR /&gt;Sending mail now ...&lt;BR /&gt;&lt;BR /&gt;SUBJECT: RPCPING OUTPUT &lt;BR /&gt;HOST     :pgadm1&lt;BR /&gt;IP      :172.30.209.15&lt;BR /&gt;OS      :aix &lt;BR /&gt;PROG NO         VER     PROTO   PORT    SERVICE         RESPONSE                &lt;BR /&gt; 1073741824        1   udp        661   program         1073741824 version 1 is not available&lt;BR /&gt; 1073741825        1   udp        899   program         1073741825 version 1 is not available&lt;BR /&gt; 1073741826        1   udp        756   program         1073741826 version 1 is not available&lt;BR /&gt; 1073741827        1   udp        813   program         1073741827 version 1 is not available&lt;BR /&gt;&lt;BR /&gt;I was wondering if someone could show me how I could convert a PERL script into a binary code? Or if the way that I've wrote my wrapper is wrong, kindly correct me. &lt;BR /&gt;Are there any perl functions or modules which converts a PERL script into a binary code?&lt;BR /&gt;&lt;BR /&gt;Attached also are both my perl script(file-6.pl). Below is wrapper code written in C. &lt;BR /&gt;&lt;BR /&gt;Could someone kindly help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;#include&lt;UNISTD.H&gt;&lt;BR /&gt;#include&lt;STDIO.H&gt;&lt;BR /&gt;#include&lt;ERRNO.H&gt;&lt;BR /&gt;#include&lt;STDLIB.H&gt;&lt;BR /&gt;#include&lt;STRING.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main(int argc, char**argv){&lt;BR /&gt;char**a = (char**)malloc(10);&lt;BR /&gt;a[0] = (char*)malloc(50);&lt;BR /&gt;a[1] = (char*)malloc(50);&lt;BR /&gt;a[2] = NULL;&lt;BR /&gt;       &lt;BR /&gt;strcpy(a[0], "/pgadm1/adm/cleaw/script/test/names");&lt;BR /&gt;execv("/pgadm1/adm/cleaw/script/test/file-6.pl",a);&lt;BR /&gt;perror("execv");&lt;BR /&gt;exit(1);   &lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/STRING.H&gt;&lt;/STDLIB.H&gt;&lt;/ERRNO.H&gt;&lt;/STDIO.H&gt;&lt;/UNISTD.H&gt;</description>
      <pubDate>Wed, 02 Jul 2003 06:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-executing-a-perl-script-in-binaries/m-p/3012871#M718749</guid>
      <dc:creator>Peter Remirez</dc:creator>
      <dc:date>2003-07-02T06:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting/executing a PERL script in binaries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-executing-a-perl-script-in-binaries/m-p/3012872#M718750</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you taken a look at perlcc?&lt;BR /&gt;I was trying it but failed at link time.&lt;BR /&gt;Because ld was unable to find some lib...&lt;BR /&gt;But maybe you can try further with your code...&lt;BR /&gt;&lt;BR /&gt;I'd also recommend removing the explicit casts&lt;BR /&gt;from your malloc() calls, it's not necessary&lt;BR /&gt;since malloc returns a void *. But fortunately&lt;BR /&gt;you've included stdlib.h.&lt;BR /&gt;&lt;BR /&gt;Hope it helps you a bit....&lt;BR /&gt;&lt;BR /&gt;Manuel</description>
      <pubDate>Thu, 03 Jul 2003 19:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-executing-a-perl-script-in-binaries/m-p/3012872#M718750</guid>
      <dc:creator>Max_4</dc:creator>
      <dc:date>2003-07-03T19:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Converting/executing a PERL script in binaries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-executing-a-perl-script-in-binaries/m-p/3012873#M718751</link>
      <description>Ther first thing that I notice is that your Perl is expecting to read command line arguments but you haven't supplied them. I don't know what you are trying to accomplish since you still have to use the Perl source -- this really isn't a standalone executable.&lt;BR /&gt;&lt;BR /&gt;A rather good Perl to native convertor is &lt;BR /&gt;Perl2exe available rather cheaply from &lt;A href="http://www.indigostar.com." target="_blank"&gt;www.indigostar.com.&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Jul 2003 19:54:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-executing-a-perl-script-in-binaries/m-p/3012873#M718751</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-07-03T19:54:33Z</dc:date>
    </item>
  </channel>
</rss>

