Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
cron
vixie-cron-4.1-minuslog.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vixie-cron-4.1-minuslog.diff of Package cron
--- vixie-cron-4.1/crontab.5 +++ vixie-cron-4.1/crontab.5 @@ -190,6 +190,10 @@ Environment variables can be set in the crontab. In BSD or ATT, the environment handed to child processes is basically the one from /etc/rc. .PP +If the uid of the owner is 0 (root), he can put a "-" as first character of +a crontab entry. This will prevent cron from writing a syslog message about +this command getting executed. +.PP Command output is mailed to the crontab owner (BSD can't do this), can be mailed to a person other than the crontab owner (SysV can't do this), or the feature can be turned off and no mail will be sent at all (SysV can't do this --- vixie-cron-4.1/entry.c +++ vixie-cron-4.1/entry.c @@ -105,6 +105,13 @@ e = (entry *) calloc(sizeof(entry), sizeof(char)); + if (ch == '-') { + e->flags |= DONT_LOG; + ch = get_char(file); + if (ch == EOF) + return NULL; + } + if (ch == '@') { /* all of these should be flagged and load-limited; i.e., * instead of @hourly meaning "0 * * * *" it should mean
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor