<div dir="ltr"><div class="gmail_default" style="font-size:large">So far in testing, looks like setting $TERM to xterm-256color resolved my issue. (not 100% sure if it was specifically that setting, but, after 20+ hours for a couple days in a row, it started working with that being defined in the .sh idea (thanks!)).</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">path typo was just my exhaustion... it is set to /tmp/test.txt ...</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">per user pid, I am old school (risk taker), I shell in as root, and code/run as root. Have since 1997 when I started running Linux as my main server line...so not a permissions issue. ;-) off to bed...</div><div class="gmail_default" style="font-size:large"><br></div><div class="gmail_default" style="font-size:large">Thanks everyone for your input and ideas where/what to try! Monday should be a good day :-)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 29, 2020 at 11:28 AM Nikolai Zhubr via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
29.01.2020 19:04, Ozz Nixon via fpc-devel:<br>
> cat /etc/test.txt<br>
> <null><br>
> ls -alrt /etc/test.txt<br>
> -rw-r--r-- 1 root root 0 Jan 29 10:54 /tmp/test.txt<br>
<br>
Make sure there is no naming confusion (such as e.g. /tmp/test.txt and <br>
/etc/test.txt unintentionally intermixed)<br>
<br>
Another point is that a binary running from systemd context might have <br>
somewhat different access rights as compared to running from an <br>
interactive shell, so that might lead to some files being unreadable and <br>
that might potentially also lead to changed behaviour.<br>
Actually systemd allows you to set a user and group you want for the <br>
service, like e.g.:<br>
<br>
[Service]<br>
User=root<br>
Group=root<br>
<br>
<br>
A don't remember what it sets by default.<br>
(And certaily, root/root is generally not a safe practice, but just for <br>
a test...)<br>
<br>
<br>
Regards,<br>
Nikolai<br>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</blockquote></div>