Layer7 API Management

Expand all | Collapse all

cronjob scripts

Jump to Best Answer
  • 1.  cronjob scripts

    Posted 02-20-2019 06:30 AM

    Hi i have installed and executing the scripts on gateway via cronjobs for daily audit purge script but the log files or not deleting 

    here are the scripts 

    0 2 * * * bash /opt/SecureSpan/Gateway/runtime/bin/ > /tmp/auditPurge.log 2>&1
    0 3 * * * bash /opt/SecureSpan/Gateway/runtime/bin/ -f > /tmp/manage_binlogs.log 2>&1


    1. how to check these scripts are called by crontab or not, if not what are the steps need to perform

    2.if the scripts has been called by cronjob still its failing to delete the log files  what might be the reason.




  • 2.  Re: cronjob scripts
    Best Answer

    Posted 02-20-2019 05:20 PM

    1. check /var/log/cron*, or /var/log/messages

    2. ls -l /tmp/*.log to check last modified date time of the log file

    3. your configuration is to overwrite the log files, not deleting the log files.

  • 3.  Re: cronjob scripts

    Posted 04-10-2019 12:20 AM


    May I ask how to set a cron job for gateway 9.4?

    I tried to run command "crontab -e" but no this command.



  • 4.  Re: cronjob scripts

    Posted 04-10-2019 06:44 PM

    What's the form factor of your gateway?

    The appliance gateway should have this command.

  • 5.  Re: cronjob scripts

    Posted 04-10-2019 10:57 PM

    Hi Mark,

    I used v9.4 ova to deploy gateway.

    I created another thread for this question.


    Thanks for your response.

  • 6.  Re: cronjob scripts

    Posted 02-21-2019 02:30 PM

    Thanks Zhijun for the quick respone