# Cron Send Broadcasts Too Many Arguments Error

**URL:** <https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653>\
**Category:** Product Support\
**Created:** [June 3, 2017, 2:57pm UTC](https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653 "2017-06-03T14:57:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonvaldivia](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jonvaldivia](https://forum.mautic.org/u/jonvaldivia)\
**Post date:** [June 3, 2017, 2:57pm UTC](https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653/1 "2017-06-03T14:57:54Z")

</div>

Hello community!  
  
  
  
I have programmed the following cron job  
  
  
  
/usr/bin/php /home/MYFOLDER/public\_html/mailmanager/app/console mautic:broadcasts:send \>/home/MYFOLDER/logs/mauticbroadcasts.txt 2\>&1  
  
  
  
  
  
It seems to be the only one that gives me errors in the log. Here is the output:  
  
  
  
[SymfonyComponentConsoleExceptionRuntimeException]  
  
Too many arguments, expected arguments “command”.  
  
  
  
  
  
mautic:broadcasts:send [-c|–channel [CHANNEL]] [-i|–id [ID]] [-f|–force] [-t|–timeout TIMEOUT] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [-n|–no-interaction] [-s|–shell] [-e|–env ENV]   
  
  
  
  
  
I am working on PHP 7.07. Can any experienced set of eyes see if I am doing something wrong?  
  
  
  
Thanks in advance,  
  
  
  
  
  
Jon

---

<div class="post-metadata">

**Author:** ![jonvaldivia](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jonvaldivia](https://forum.mautic.org/u/jonvaldivia)\
**Post date:** [June 3, 2017, 2:57pm UTC](https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653/2 "2017-06-03T14:57:54Z")

</div>

Hello community!

I have programmed the following cron job

/usr/bin/php /home/MYFOLDER/public\_html/mailmanager/app/console mautic:broadcasts:send [–id=ID] [–channel=CHANNEL] \>/home/MYFOLDER/logs/mauticbroadcasts.txt 2\>&1

It seems to be the only one that gives me errors in the log. Here is the output:

[SymfonyComponentConsoleExceptionRuntimeException]  
Too many arguments, expected arguments “command”.

mautic:broadcasts:send [-c|–channel [CHANNEL]] [-i|–id [ID]] [-f|–force] [-t|–timeout TIMEOUT] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-s|–shell] [–process-isolation] [-e|–env ENV] [–no-debug] [–]

I am working on PHP 7.07. Can any experienced set of eyes see if I am doing something wrong?

Thanks in advance,

Jon

---

<div class="post-metadata">

**Author:** ![jonvaldivia](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jonvaldivia](https://forum.mautic.org/u/jonvaldivia)\
**Post date:** [June 3, 2017, 5:11pm UTC](https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653/3 "2017-06-03T17:11:24Z")

</div>

If I understand you correctly, I have to change the cron job and specify a different ID every time I want to send a broadcast email?

Thanks

---

<div class="post-metadata">

**Author:** ![jonvaldivia](https://avatars.discourse-cdn.com/v4/letter/j/f08c70/32.png) [@jonvaldivia](https://forum.mautic.org/u/jonvaldivia)\
**Post date:** [June 3, 2017, 5:17pm UTC](https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653/4 "2017-06-03T17:17:47Z")

</div>

So basically I can run the cron like this:

/usr/bin/php /home/MYFOLDER/public\_html/mailmanager/app/console mautic:broadcasts:send

and it will send all published broadcast emails?

Thank you!

---

<div class="post-metadata">

**Author:** ![danielolawuyi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/danielolawuyi/32/1061_2.png) [@danielolawuyi](https://forum.mautic.org/u/danielolawuyi)\
**Post date:** [February 12, 2021, 1:37pm UTC](https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653/5 "2021-02-12T13:37:09Z")

</div>

Hello guys,

Has anyone been able to figure out how to fix this error??

I am have thesame issue

Too many arguments, expected arguments “command”.

mautic:broadcasts:send [-c|–channel [CHANNEL]] [-i|–id [ID]] [–min-contact-id [MIN-CONTACT-ID]] [–max-contact-id [MAX-CONTACT-ID]] [-l|–limit [LIMIT]] [-b|–batch [BATCH]] [-f|–force] [–bypass-locking] [-t|–timeout TIMEOUT] [-x|–lock\_mode LOCK\_MODE] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–]

Kindly help me out

Thanks

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [February 13, 2021, 6:37pm UTC](https://forum.mautic.org/t/cron-send-broadcasts-too-many-arguments-error/8653/6 "2021-02-13T18:37:16Z")

</div>

Only use these, and nothing else

> [@danielolawuyi](#):
>
> mautic:broadcasts:send [-c|–channel [CHANNEL]] [-i|–id [ID]] [–min-contact-id [MIN-CONTACT-ID]] [–max-contact-id [MAX-CONTACT-ID]] [-l|–limit [LIMIT]] [-b|–batch [BATCH]] [-f|–force] [–bypass-locking] [-t|–timeout TIMEOUT] [-x|–lock\_mode LOCK\_MODE] [-h|–help] [-q|–quiet] [-v|vv|vvv|–verbose] [-V|–version] [–ansi] [–no-ansi] [-n|–no-interaction] [-e|–env ENV] [–no-debug] [–]
