script run from cron

Greg Schlut filepro at vltool.com
Thu Sep 8 07:49:06 PDT 2005



Chad McWilliams wrote:

>>-----Original Message-----
>>From: 
>>filepro-list-bounces+fpmail=computiprint.com at lists.celestial.c
>>om 
>>[mailto:filepro-list-bounces+fpmail=computiprint.com at lists.cel
>>estial.com] On Behalf Of Greg Schlut
>>Sent: Thursday, September 08, 2005 9:27 AM
>>To: filepro-list at lists.celestial.com
>>Subject: script run from cron
>>
>>
>>I am using filepro 4.8 on Redhat linux 7.1.  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 
>>cron I get
>>
>>*** A filePro Error Has Occurred ***
>>
>>Entry: cl
>>
>>Required terminal feature not available.
>>Alert your system administrator.
>>
>>
>>Is there a way to run the script without using a terminal 
>>with filepro. 
>>  Or could I modify my script somehow to support a terminal.
>>
>>My script is below.  Just 2 lines executing the report.
>>
>>#/bin/bash
>>/appl/fp/dreport vlprocess -f spindata -N -S schedule 
>>/appl/fp/dreport vljobcard -f spindata -N -S schedule
>>
>>Thanks,
>>	Greg
>>
> 
> 
> Just add:
> 
> export TERM=ansi
> 
> after the #/bin/bash line.
> 
> -Chad McWilliams

Well that was easy.  Thank You.

--Greg



More information about the Filepro-list mailing list