script run from cron

Walter Vaughan wvaughan at steelerubber.com
Thu Sep 8 07:49:21 PDT 2005


Greg Schlut wrote:

> I am using filepro 4.8 on Redhat linux 7.1.

Golly I hope it's not on the internet unless you've ran up2date alot

> I want to run a script 
> scheduled on a cron job that runs 2 reports that export .dat file. 
> Problem is, filepro needs a terminal to run.  When I run the job with 

Then give it one. It needs a TERM variable

#/bin/sh
TERM=ansi; export TERM
/appl/fp/dreport vlprocess -f spindata -N -S schedule
/appl/fp/dreport vljobcard -f spindata -N -S schedule

I don't use bash. Whatever you're supposed to use to set an evironmental 
variable is what you need to do within a bash script.

And why are you using dreport instead of rreport? You probably could upgrade to 
a 1-5 developer and 1-runtime_user_need filePro 5.0 for a lot less than you 
would expect.



More information about the Filepro-list mailing list