crontab entry
Jay Ashworth
jra at baylink.com
Thu Jul 7 10:01:33 PDT 2011
----- Original Message -----
> From: "calvin covington" <cjcov at pclnet.net>
> I need to run a filepro program from crontab. The following script is
> loaded in crontab to run a specified times.
>
> PFDIR=/usr/appls; export PFDIR
> PFPROG=/usr/appl; export PFPROG
> cd /usr/appls
> chmod 777 ardsupd.gz
> chmod 777 ardsupd
> rm -f ardsupd
> gunzip ardsupd.gz
> tar xvf ardsupd
> /usr/appl/fp/rreport shopxfer -f inupdate -a -u
>
> The script runs at the times specified in cron, but the last line not
> execute.
>
> I can run the script manually and it works fine.
>
> Any ideas?
Oh good, you picked an easy one. :-)
Filepro programs won't run without $TERM set to *something*, and cron doesn't
set it to anything.
Add TERM=vt100 export TERM to the top...
and I'd add '>/dev/null 2>&1' to the end of your dclerk line, myself...
and see what happens. :-)
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com 2000 Land Rover DII
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
More information about the Filepro-list
mailing list