InMotion Hosting Support Center

Getting "/bin/sh: command not found error" with cron job

Category: Billing
2013-05-14 1:59 am EST

Hits: 3,447
I want a notification from server when a file is added inside public_html folder.

49 * * * * find /home/CPANELUSERNAME/public_html -mtime -1 \! -type d -ls
i have set this cron job as a solution.but

i get a error command is not found.
/bin/sh: 49: command not found i am getting everytime this error.....

You must login before you can ask a follow up question.

You must login before you can submit an answer.



5,889 Points
2013-05-14 10:22 am EST
Thank you for your question!

Sorry to hear about the problem with the cron job error. If you have not already, please see the following links on how cron jobs work on our server.

301: How to run a cron job

Intensive cron jobs or scheduled tasks

It looks like when the command is ran the system is seeing 49 as a command and not the time. You will want to check your cron tab to make sure it's set up correctly.

Best Regards,
James R

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!