# CRON error: Bad fd number

**URL:** https://forum.mautic.org/t/cron-error-bad-fd-number/8972
**Category:** Development
**Created:** [July 17, 2017, 1:35pm UTC](https://forum.mautic.org/t/cron-error-bad-fd-number/8972 "2017-07-17T13:35:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Huckleberry](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/huckleberry/32/535_2.png) [@Huckleberry](https://forum.mautic.org/u/Huckleberry)
#### Post date: [July 17, 2017, 1:35pm UTC](https://forum.mautic.org/t/cron-error-bad-fd-number/8972/1 "2017-07-17T13:35:50Z")

</div>

My CRON script has been emailing me intermittently with the following error:

Code:

/bin/sh: 1: Syntax error: Bad fd number

Anyone had this issue and know how to resolve it?  
Thanks in advance!

---

<div class="post-metadata">

### Author: ![Huckleberry](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/huckleberry/32/535_2.png) [@Huckleberry](https://forum.mautic.org/u/Huckleberry)
#### Post date: [July 17, 2017, 1:35pm UTC](https://forum.mautic.org/t/cron-error-bad-fd-number/8972/2 "2017-07-17T13:35:50Z")

</div>

My CRON script has been emailing me intermittently with the following error:

```auto
/bin/sh: 1: Syntax error: Bad fd number
```

Anyone had this issue and know how to resolve it?  
Thanks in advance!

---

<div class="post-metadata">

### Author: ![Huckleberry](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/huckleberry/32/535_2.png) [@Huckleberry](https://forum.mautic.org/u/Huckleberry)
#### Post date: [July 18, 2017, 12:55pm UTC](https://forum.mautic.org/t/cron-error-bad-fd-number/8972/3 "2017-07-18T12:55:43Z")

</div>

Turns out to be operator error. There was an extra character at the end of my cron job that shouldn’t have been there. Must have accidentally typed it and saved. Removed and all seems to work well.  
BAD CRON:

```auto
*/16 * * * * php /path/to/matuic/app/console mautic:campaigns:update > /dev/null 2>&15
```

GOOD CRON:  
Remove the 5 at the very end. How’d that get there? (scratches head)

```auto
*/16 * * * * php /path/to/mautic/app/console mautic:campaigns:update > /dev/null 2>&1
```

Hope this helps someone else.
