Script Works, But Not with CRON
Bob Stockler
bob at trebor.iglou.com
Wed May 5 07:30:21 PDT 2004
On Wed, May 05, 2004 at 12:18:33AM -0400, Ken Brody wrote:
| Bob Stockler wrote:
| [...]
| > TERM=ansi ; PFTERM=ansi ; PFPROG=/u/appl ; PFDATA=/u ; PFDIR=""
| [...]
| > But, surprise of surprises, "script.err" held:
| >
| > *** A System Error Has Occurred ***
| > /pcfiles2/filepro/invtry/keyx1: Permission denied
| >
| > Standard Input Redirected
| [...]
| > I don't know where it got "/pcfiles2" (that's a directory
| > in the root filesystem where Windows users store their PC
| > files) for $PFDATA$PFDIR or where "keyx1" came from.
| >
| > Back to the drawing board tomorrow.
|
| Is "/pcfiles2" a mounted filesystem? (Type "/etc/mount".)
|
| Is PFDSK set for normal logins? I see that you don't set it in the
| cron script.
I think maybe you and Keith Weatherhead have detected my
oversight. PFDSK is set to "/u" in the environment for
all regular users, but 'cron' isn't a regular user.
Its absence in the script would explain why it works from
the command line, but not when run by 'cron'- that being
the significant difference in the environment in which it
runs under those two conditions.
I'll set it in the script and see what happens tonight.
Thanks all . . .
Bob (kicking himself in the head over that oversight)
--
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).
More information about the Filepro-list
mailing list