Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hello All, I Am trying to use par packer to create and executable. However I am struggling to get the results I am looking for.

  • exe name - switch.exe
  • Perl script - dell4048.pl
  • Included file - #defaultconfig
So I try the following:
  • pp -o switch.exe dell4048.pl #defaultconfig
This creates the switch.exe file and adds the #defaultconfig In the exe but when the exe is executed, I get an error that it can not find the switch script. When I examine the contents of the exe, the dell4048.pl and #defaultconfig files are indeed in the script directory. So it seems that the name of the exe needs to be the same name of the script minus the extension.

So I try the following instead:

  • pp -o switch.exe -r dell4048.pl dell4048.pl #defaultconfig
When the switch.exe runs, it properly launches the dell4948.pl script but upon examination of the switch.exe file, only the dell4048.pl file is located under the script directory. The #defaultconfig file is not in the script directory

So, how can I get pp to create the switch.exe file, include the #defaultconfig file and when switch.exe is executed, it will run the dell4048.pl script within script.exe ?

Thanks,

Gary


In reply to Par Packager - executable by g_speran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found