Why bother with */1? Wouldn't that be the same as just *? On Apr 22, 2016 5:48 PM, "Marcin Trendota" <moonwolf.rh at gmail.com> wrote:> On Friday 22 of April 2016 11:40:33 PM Marcin Trendota wrote: > > What the heck is wrong with cron? > > > > */1 * * * * nobody /usr/bin/php /var/www/html/osticket/api/cron.php > > > > in /etc/cron.d doesn't get executed at all (ran from console works of > > course!). But the SAME file in /tmp runs flawlessly: > > Just to be clear: > > [root at kohrin cron.d]# sudo -u nobody /usr/bin/php > /var/www/html/osticket/api/cron.php > > Works as expected. > > -- > Over And Out > MoonWolf > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
On Fri, Apr 22, 2016 at 05:58:39PM -0400, Steven Ford wrote:> Why bother with */1? Wouldn't that be the same as just *? > On Apr 22, 2016 5:48 PM, "Marcin Trendota" <moonwolf.rh at gmail.com> wrote: >I had the same question. Plus, the man page says "'/<number>' specifies skips of the number's value through the range." That could be interpreted to be skip each minute.> > On Friday 22 of April 2016 11:40:33 PM Marcin Trendota wrote: > > > What the heck is wrong with cron? > > > > > > */1 * * * * nobody /usr/bin/php /var/www/html/osticket/api/cron.php > > > > > > in /etc/cron.d doesn't get executed at all (ran from console works of > > > course!). But the SAME file in /tmp runs flawlessly: > > > > Just to be clear: > > > > [root at kohrin cron.d]# sudo -u nobody /usr/bin/php > > /var/www/html/osticket/api/cron.php > > > > Works as expected. > > > > -- > > Over And Out > > MoonWolf > > _______________________________________________ > > CentOS mailing list > > CentOS at centos.org > > https://lists.centos.org/mailman/listinfo/centos > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >>> End of included message <<<-- Jon H. LaBadie jon at jgcomp.com 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
On Friday 22 of April 2016 5:58:39 PM Steven Ford wrote:> Why bother with */1? Wouldn't that be the same as just *?That's for debugging. It'll be */5 for production purposes. Anyway. It still doesn't work. Why? -- Over And Out MoonWolf
Anything interesting in the logs? sudo journalctl -xf _SYSTEMD_UNIT=crond.service
Seemed strange is all. Can the nobody user read down into /var/www/html/osticket/api? If it works in tmp, maybe permissions are the issue. On Apr 22, 2016 7:57 PM, "Marcin Trendota" <moonwolf.rh at gmail.com> wrote:> On Friday 22 of April 2016 5:58:39 PM Steven Ford wrote: > > Why bother with */1? Wouldn't that be the same as just *? > > That's for debugging. It'll be */5 for production purposes. > > Anyway. It still doesn't work. Why? > > -- > Over And Out > MoonWolf > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >