Running C programs with cron ???

Larry Campbell campbell at maynard.UUCP
Fri Sep 27 12:02:49 AEST 1985


> Has anyone experienced problems with the 'system()' call within a C
> program not being executed properly when the program is executed via
> cron?  ...

Your problem may be that in some Unix implementations, the first thing
cron does is

	setuid(1);

which means it (and its children) probably doesn't have permission to
write in any log files you might be trying to use to leave tracks.
I've found that removing the setuid makes cron much more useful.
-- 
Larry Campbell                     decvax!genrad
The Boston Software Works, Inc.                 \
120 Fulton St.                 seismo!harvard!wjh12!maynard!campbell
Boston MA 02109                         /       /
                                   ihnp4  cbosgd

ARPA: campbell%maynard.uucp at harvard.arpa



More information about the Comp.unix.wizards mailing list