Article View: news.software.nntp
Article #80004Re: Cron job for pullnews
From: Ray Banana
Date: Sat, 10 Jan 2009 06:34
Date: Sat, 10 Jan 2009 06:34
44 lines
3046 bytes
3046 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > What is the recommended way to set up a cron job to run pullnews every hour? > I would presume the owner:group would need to be news:news since > .pullnews is owned by the user news. Please read the pullnews manpage. .pullnews is the default config file which is located in the home directory of the user who runs pullnews. The pullnews executable is in /usr/lib/news/bin/ in a Debian environment . > Would the cron job file be located in /var/spool/news (Debian), or in > one of the /etc directories for cron jobs? As /etc/cron.d/inn2 is part of the Debian INN package, I would leave it alone, just to be safe. As I prefer to have all site-specific INN-related jobs in one central crontab rather than scattered across several user crontabs, I would put it in a separate crontab in /etc/cron.d/. > 15 * * * * news /var/spool/news/.pullnews > > or possibly simplified as: > > 15 * * * * news ./.pullnews > > Both of those give me a permission denied error (as news), You are trying to execute the config file instead of the executable. > but a plain > "pullnews" works fine. So, maybe it should be: > 15 * * * * news pullnews Please keep in mind that the $PATH environment of a crontab is different from the $PATH environment of the same user's login shell, so to be safe, always use the full path for executables: 15 * * * * news /usr/lib/news/bin/pullnews -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Technical Details
Message-ID:
<807i53r7nl.fsf@banana.shacknet.nu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mailReferences:
<gk9bgv$1m0$1@optima7.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <807i53r7nl.fsf@banana.shacknet.nu> Subject: Re: Cron job for pullnews Date: Sat, 10 Jan 2009 07:34:38 +0100 From: Ray Banana <rayban@banana.shacknet.nu> References: <gk9bgv$1m0$1@optima7.xanadu-bbs.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient spider Lines: 44 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.eternal-september.org U2FsdGVkX18VYxxcqrNovEl5ALpnqTTNlczOFjrcgYOeMsbadQnZ/Ej7Lpw+jEueA7zTMOUhS6EDCOnEvN9wvARfWBZmzFXV1R+nRKv1xt7OW50OIg1/eFqZ/1ybBW0X6aOQ8f3FYJk= X-Complaints-To: abuse@banana.shacknet.nu X-Auth-Sender: U2FsdGVkX19NStuFuq9ibdRxZjk9N5XkeZPB0lYL6c8miXQvZMEpFA== Cancel-Lock: sha1:AVlbz4ojCylvF7nSMtqq7T5dxRU= sha1:rk0rCL/nHTNfzVdx+5SKd97Iiw0= User-Agent: Plonkenlights X-PGP-Sig: 2.6.3ia Subject,Message-ID,Date,From,User-Agent iQCVAwUBSWhBtxFgDSXFGJ/lAQF17AP9ES/Nh4s4YmOtsC6R8bKHTIQKNm2IcHYw LjuUIvGqFEZf2JIXxp4mF6XOxM3yJHi3Zf1gZM7GKbrNtTuHwHofHuV1O3eC5fLc sJhz5Bh0BN/YjEXX4wNTGTBRoKVr18h/YkYfhibMyHHqzZ5FYFX63nINURw8PMGa uSg1mIRcqUY= =Gqfv X-Attribution: Ray Banana