On gnu.misc.discuss, in <[EMAIL PROTECTED]>, "Matthew Rich" wrote:
>
>
> I'm trying to set up a nightbuild for the company I
> work for.  If I run the script from my home dir it
> runs just fine but if I set up a cron job is get the
> following failure on calls to install:
>
> calling buildscript
>
> Invoke build script...
>
> Creating directory structure .......
>
> Creating mk.conf .......
>
> includes ===> neoscale/sys
>
> creating
> /home/mrich/nightlybuildtape/securetape/install/usr/include/neoscale/sys
>
> install: invalid user `-g'
>
> *** Error code 1
>
>  
>
> Stop.
>
> *** Error code 1
>
>  
>
> Stop.
>
> ********* Error: pmake includes failed!
>
> Current Working Directory is
> /home/mrich/nightlybuildtape/securetape/linux
>
> Tape Build completed at Fri Aug 12 10:13:16 PDT 2005
>
>
> Any Idea why this fails only when run as a cron job?
>
> Thanks
>
> Matt
>
> if this is not the correct list to post this question
> please redirect me to the correct list.
>
>
>

The script run by cron doesn't inherit the environment that your
script does in ~.

You need to set the crtical environment variables in the script
itself.

AC
_______________________________________________
Gnu-misc-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-misc-discuss

Reply via email to