filepro permissions on system call

Timothy R Barr tim.barr at evalsvs.com
Tue May 14 07:31:28 PDT 2019


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.

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.
The dot and space allow the environment variable changes of the sub script
to persist after that script has completed.

. /usr/local/set_fp_environ.sh



Timothy R Barr, CPE, VP/CTO
Evaluator Services and Technology, Inc
1801 Oberlin Rd, Suite 204
Middletown, PA 17057
717-985-1122 x 1131
855-569-6022 (Tollfree Middletown)
855-500-6022 (Tollfree Fax)
tim.barr at evalsvs.com





---------- Forwarded message ----------
> From: "scooter6 at gmail.com" <scooter6 at gmail.com>
> To: filePro Mailing List <filepro-list at lists.celestial.com>
> Cc:
> Bcc:
> Date: Fri, 10 May 2019 11:29:51 -0400
> Subject: filepro permissions on system call
> I have a output processing table that does a system call to a shell script
> and passes parameters to it
>
> If: zb ne za
> Then: system "/appl/fpmerge/path/to/script.sh"<zf<za<zb
>
> This processing table runs  in root's cron at night - this script doesn't
> run (this script sends an email) if run in root's cron
> This also doesn't run if I su - root and run the processing table
>
> However it does work if I login as myself and I run the processing table
> and also runs if I just run the script 'stand alone' as myself or if I run
> the script 'stand alone' if I su - root
> But as root it doesn't run if I call the filepro processing table
>
> What are the proper permissions on a script that runs in root's cron, but
> that filepro actually calls via a system call?  I currently have it owned
> and group own as filepro
> I tried changing both properties to root but nothing changed
>
> CentOS 7 and filePro 5.6.10R4
>
> thanks
> Scott
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.celestial.com/pipermail/filepro-list/attachments/20190510/c5d32b8a/attachment.html
> >
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20190514/d12daafe/attachment.html>


More information about the Filepro-list mailing list