cron.d.example 395 B

12345678
  1. # For more information see the manual pages of crontab(5) and cron(8)
  2. # m h dom mon dow user command
  3. FCNDOLIBARR=/path/to/fcn-toolbox/fcn-dolibarr
  4. FCNSYMPA=/path/to/fcn-toolbox/fcn-sympa
  5. # Synchronize sympa with Dolibarr, by exporting subscribers (daily)
  6. 2 3 * * * root $FCNDOLIBARR get-subscribers --product "PRODUCTCODE" | sudo -u sympa $FCNSYMPA --import="subscribers@example.net"