# Crontab not working

**URL:** <https://community.f5.com/t/crontab-not-working/46168>\
**Category:** Technical Forums\
**Tags:** ltm, application-delivery\
**Created:** [September 12, 2018, 1:35pm UTC](https://community.f5.com/t/crontab-not-working/46168 "2018-09-12T13:35:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Livius](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@Livius](https://community.f5.com/u/Livius)\
**Post date:** [September 12, 2018, 1:35pm UTC](https://community.f5.com/t/crontab-not-working/46168/1 "2018-09-12T13:35:57Z")

</div>

Hi all,

Trying to set up a rotating tcpdump on F5 , I added the following entries in crontab :

0,15,30,45 \* \* \* \* pkill tcpdump 0,15,30,45 \* \* \* \* tcpdump -ni 0.0:nnnp -s0 host x.x.x.x or host y.y.y.y or host z.z.z.z -w /var/tmp/2518/2518\_v4\_`date +%Y%m%d%H%M%S`.pcap

I cannot manage to have it running. What am I missing?

---

<div class="post-metadata">

**Author:** ![youssef1](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@youssef1](https://community.f5.com/u/youssef1)\
**Post date:** [September 12, 2018, 1:57pm UTC](https://community.f5.com/t/crontab-not-working/46168/2 "2018-09-12T13:57:58Z")

</div>

Hello,

I advise you to proceed like that (don’t use pkill tcpdump 0,15,30,45 … instead use timeout as shown below):

So first of specify when you want to trigged your tcpdump, you can use an online generator:

[https://www.freeformatter.com/cron-expression-generator-quartz.html](https://www.freeformatter.com/cron-expression-generator-quartz.html)

Then use command

```tcl
timeout (sec)

```

in order to setup how many times you want to capture (suppose 5 sec), you will obtain (crontab every 10 minutes):

\*/10 \* \* \* \*

```tcl
timeout 5

```

tcpdump -ni 0.0:nnnp -s0 host x.x.x.x or host y.y.y.y or host z.z.z.z -w /var/tmp/2518/2518\_v4\_`date +%Y%m%d%H%M%S`.pcap

Keep me update regards
