Beefy Boxes and Bandwidth Generously Provided by pair Networks chromatic writing perl on a camel
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Cannot launch perl packer binary from inetd

by Anonymous Monk
on Dec 13, 2012 at 16:43 UTC ( #1008683=note: print w/ replies, xml ) Need Help??


in reply to Re: Cannot launch perl packer binary from inetd
in thread Cannot launch perl packer binary from inetd

The Perl script lanuches and runs perfectly from inetd. However, the PAR packager binary version doesn't run. See below when I poked inetd, it launched the binary program (testportal). The response suggests that I am not calling the program correctly. Any ideas why would perl packer change the usage of my script and how come I can call it from the command line? Is this something to do with pp not supporting daemon mode as advised by Old Gray Bear or something else? Any more wisdom would be appreciated.

# nc 192.168.1.110 8080 Usage: testportal [ -Alib.par ] [ -Idir ] [ -Mmodule ] [ src.par ] [ p +rogram.pl ] testportal [ -B|-b ] [-Ooutfile] src.par


Comment on Re^2: Cannot launch perl packer binary from inetd
Download Code
Re^3: Cannot launch perl packer binary from inetd
by Anonymous Monk on Dec 14, 2012 at 09:47 UTC

      SOLUTION FOUND - When I added the -d option to my command line, the resultant binary may be launched by inetd. Perldoc pp does not go into much detail on this option. But contrib/docs/where_is_it.txt gave me the clue to find the answer. Thanks Anonymous Monk.

      POST-MORTEM - I suspect that my problem was caused due to Perl being installed on the target machine. When I build with dependencies the binary does not launch correctly (perhaps due to a library ambiguity?). When I rebuild without dependencies, the library is loaded and my program runs.

      Thanks for your help guys!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2014-04-16 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (432 votes), past polls