cancel
Showing results for 
Search instead for 
Did you mean: 

TMSH cron job

mg2Bsecure
Nimbostratus
Nimbostratus

Hi,

 

i created a TMSH cron job using crontab -e and nothing happens.

crontab -l shows that the cronjob is added to the list.

Help.

2 REPLIES 2

Samir
Nacreous
Nacreous

What is your requirements?

NAG
Cirrostratus
Cirrostratus

Could you explain what you mean by "TMSH cron job" ?

 

If want to run some TMSH commands at regular time periods, here is the procedure.

 

1) write a shell script to run all the TMSH commands you want to and save it in directory. For example, /var/tmp/script_name.sh

 

2) Update permissions  to executable one

chmod +x script_name.sh

 

3) Make a cronjob entry using crontab -e  command

Example:

0 6 1 * * /usr/bin/bash /var/tmp/script_name.sh

 

Here are the resources which explain more on this::

https://devcentral.f5.com/s/question/0D51T00006aFbGESA0/steps-to-configure-cron-jobs-to-execute-comm...

https://devcentral.f5.com/s/question/0D51T00006i7j1A/auto-back-script-in-cron-shell

 

Regards,

Nag