<div dir="ltr"><div>Make sure you have setup all the necessary environment variables in the shell script. (PFDATA, PFPROG, etc). When running a script from your login account, the environment of your user is available. When running from Cron (or scheduled tasks in Windows), those settings are not there.</div><div><br></div><div>When still doing unix, we created a script call set_fp_environ.sh and launched it preceded with a dot and space during both the login processes and the cron jobs.</div><div>The dot and space allow the environment variable changes of the sub script to persist after that script has completed.</div><div><br></div><div>. /usr/local/set_fp_environ.sh</div><div><br></div><div><br></div><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Timothy R Barr, CPE, VP/CTO<br>Evaluator Services and Technology, Inc</div><div>1801 Oberlin Rd, Suite 204</div><div>Middletown, PA 17057<br><span><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice">717-985-1122</span></span></span></span> x 1131</span></div><div><span><span title="Call with Google Voice"><span title="Call with Google Voice">855-569-6022</span></span> (Tollfree Middletown)</span><br><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice">855-500-6022</span></span></span></span> (Tollfree Fax)<br></div><div><a href="mailto:tim.barr@evalsvs.com" target="_blank">tim.barr@evalsvs.com</a></div><div><br></div><div><img src="https://docs.google.com/uc?export=download&id=0B7FoDMJ7fkkxalFWZDF4ZGs3akE&revid=0B7FoDMJ7fkkxekd5TFNRb3F0TWd4a3BoSlltbWdzaWJFb2VnPQ" width="200" height="57"><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>From: "<a href="mailto:scooter6@gmail.com" target="_blank">scooter6@gmail.com</a>" <<a href="mailto:scooter6@gmail.com" target="_blank">scooter6@gmail.com</a>><br>To: filePro Mailing List <<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a>><br>Cc: <br>Bcc: <br>Date: Fri, 10 May 2019 11:29:51 -0400<br>Subject: filepro permissions on system call<br>I have a output processing table that does a system call to a shell script<br>
and passes parameters to it<br>
<br>
If: zb ne za<br>
Then: system "/appl/fpmerge/path/to/script.sh"<zf<za<zb<br>
<br>
This processing table runs in root's cron at night - this script doesn't<br>
run (this script sends an email) if run in root's cron<br>
This also doesn't run if I su - root and run the processing table<br>
<br>
However it does work if I login as myself and I run the processing table<br>
and also runs if I just run the script 'stand alone' as myself or if I run<br>
the script 'stand alone' if I su - root<br>
But as root it doesn't run if I call the filepro processing table<br>
<br>
What are the proper permissions on a script that runs in root's cron, but<br>
that filepro actually calls via a system call? I currently have it owned<br>
and group own as filepro<br>
I tried changing both properties to root but nothing changed<br>
<br>
CentOS 7 and filePro 5.6.10R4<br>
<br>
thanks<br>
Scott<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20190510/c5d32b8a/attachment.html" rel="noreferrer" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20190510/c5d32b8a/attachment.html</a>><br>
<br><br><br>
</blockquote></div></div>