InMotion Hosting Support Center

How Do I Fix "/bin/sh: command not found error" for My Cronjob?

Category: Billing

rohini@copperpix.com
Asked:
2013-05-14 1:59 am EST

Hits: 4,064
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.

OTHER ANSWERS

0

carlose
Staff
1,598 Points
2013-05-14 10:22 am EST
Thank you for your question rohini@copperpix.com!

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 runs 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!

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

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

   
Social Login Joomla

Need more Help?

Search

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: support@InMotionHosting.com
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!