Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Thanks to everyone for contributing to this answer. I am adding this answer to distill out the parts of everyone's invaluable input that I used to come up with the solution that worked for me in my particular application.</p> <p>The app is written in ActiveState Perl using POE and Tk and packaged for distribution using pp. It makes use of several external files; some for input into the program (munged data from DNS) and some for actions taken by the user (creation and deletion of DNS alias records).</p> <p>The PAR packer (pp) includes external files using the -a argument. These files are unpacked into the \inc directory under a "temp" path created by the package and available to the script via </p> <pre><code>$ENV{PAR_TEMP}</code></pre> <p>The first step in the solution was to add this information to the POE "$heap". The line below is in the in-line state "_start";</p> <pre><code>$heap->{t_path} = "$ENV{PAR_TEMP}\\inc\\";</code></pre> <p>As I am working in the Win32 environment, I used the escaped backslashes to append the \inc directory into the temp path.</p> <p>When calling an external file for input into the application, I used a variable (@zone) to return the data;</p> <pre><code>@zone = `$heap->{t_path}dnscmd aus-dc1 /enumrecords company.pvt @`;</code></pre> <p>For calls to complete external actions, the files are called without saving the output;</p> <pre><code>`$heap->{t_path}cpau -dec -file $heap->{t_path}del_event.job -nowarn -wait`;</code></pre> <p>Thanks again to everyone for contributing and thanks to stackoverflow for providing this great environment.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload