We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

Custom cronjob does not work

  • Type: Knowledgebase
  • Date changed: 6 months ago
Solution #00005199 
 
Scope:
This solution replies to:
- NG Firewall firmware versions 4.2.x, 5.0.x, 5.2.x
- netfence firmware versions 4.2.x

 
Symptoms:

A custom cronjob in "Config" > "Box" > "Advanced Configration" > "System Scheduler" does not work although the used command was executed on command line.

Example: /root/test.sh

 

Check the /var/log/cron logfile whether or not the job was executed.

  cat /var/log/cron


 

Solution:

For cronjobs it is importand to enter the correct syntax with full path and execution in the background with "&".

 

Please correct your cronjob in  "Config" > "Box" > "Advanced Configration" > "System Scheduler" and use the right syntax, like in the following example:  /root/test.sh & > /dev/null &

 
 
Link to This Page:
https://campus.barracuda.com/solution/50160000000IKZsAAO