Hi,

I've compiled Perl script and now I'm using it in this environment :
MAILTO=xxx@xxx.xxx.xxx # Activity reports every 5 minutes everyday&>> */5 * * * * www-data USER=www-data;PAR_CLEAN=1;/usr/local/bin/Convert +_All_CybroItems.sh 1>>/var/log/Tinia/Convert_All_CybroItems-error.log + 2>>/var/log/Tinia/Convert_All_CybroItems-error.log


and I have in /usr/local/bin/Convert_All_CybroItems.sh :

#!/bin/bash /usr/bin/tail -n 5000 /var/log/Tinia/Tinia_Visu/All_CybroItems_log.txt + > /var/log/Tinia/All_CybroItems_log_latest.txt /bin/cat /var/log/Tinia/All_CybroItems_log_latest.txt | /usr/local/bin +/All_CybroItems_log_to_xml > /var/www/tinialine/all_cybro_items.xml +2>>/var/log/Tinia/Convert_All_CybroItems-error.log
where "/usr/local/bin/All_CybroItems_log_to_xml" is compiled Perl script with pp.

"All_CybroItems_log_latest.txt" has valid content, but I get this error in "Convert_All_CybroItems-error.log":

/usr/local/bin/All_CybroItems_log_to_xml: creation of /tmp/par-SYSTEM/cache-a7209413b5765281c83780bce66a67ab297f38c1/libperl.so.5.8 failed - aborting with 2.

The problem seems related to fact that I also have other compiled scripts running on system under root. Therefore directory /tmp/par-SYSTEM/ becomes owned by root, but I need somehow to run problem script under user www-data, so it will expand in /tmp/par-www-data/, but it seems that common libraries are always expanded in par-SYSTEM ...

Is there anyway to avoid this problem ? Any more info on running compiled scripts as various users ?

Thanks in advance,

regards,

Bulek.


In reply to Problems with Par PP - creation of /tmp/par-SYSTEM/cache ... failed by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.