Jump to content

how to fix error in cronjob


ricardo santos

Recommended Posts

hi

 

cronjob code: | php -q /home/admin/domains/arvandweb.net/crons/pipe.php

 

error: /bin/sh: -c: line 0: syntax error near unexpected token `|'

/bin/sh: -c: line 0: `| php -q /home/admin/domains/domain/crons/pipe.php'

 

control panel: directadmin

version whmcs: 6.3.1

 

thanks /

 

- - - Updated - - -

 

Occurred before the subject typo:

 

hi

 

cronjob code: | php -q /home/admin/domains/arvandweb.net/crons/pipe.php

 

error: /bin/sh: -c: line 0: syntax error near unexpected token `|'

/bin/sh: -c: line 0: `| php -q /home/admin/domains/domain.com/crons/pipe.php'

 

control panel: directadmin

version whmcs: 6.3.1

 

how to fix this

thanks /

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

There doesn't seem to be much info on troubleshooting piping emails to a file in DirectAdmin that I could locate. The most recent thread I could find was from 2013: https://forum.directadmin.com/archive/index.php/t-46830.html

 

That seems to suggest trying the fill path to PHP:

 

 

| /usr/local/bin/php -q /home/admin/domains/arvandweb.net/crons/pipe.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated