[Mailman-Users] Errors with fcron jobs

Mark Sapiro msapiro at value.net
Mon Dec 19 01:00:33 CET 2005


Hugo Villeneuve wrote:
>
>In the fcron configuration file, I have already this line for the shell:
>     shell = /bin/sh


Well, I don't use fcron so I don't know for sure, but looking at the
various manpages leads me to think that the shell= setting in the
fcron config file is only a default if the shell is not otherwise
specified.

man 5 fcrontab

says

  When fcron executes a command, it always sets USER, HOME, and SHELL
  as defined in /etc/passwd for the owner of the fcrontab from which
  the command is extracted. HOME and SHELL may be overridden by
  settings in the fcrontab, but USER may not. Every other environment
  assignments defined in the user fcrontab are then made, and the
  command is executed.

Note the word 'always'. This suggests that you need

SHELL = /bin/sh

preceding any commands in the fcrontab entry itself.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list