On Mon, 25 Jan 2016, waqas.mehmood90 wrote:

I am working on asterisk ivr .i am facing problrm in crontab.when i run example it give bash 5:command not found then i check and found that no crontab for root user kindly guide me please

If you start your thread with a relevant subject you may get better responses -- better bait, better fish :)

Your question is somewhat cryptic.

Is this an Asterisk issue or a system administration (bash/crontab) issue?

If you don't have a crontab for root, how are you executing your script?

The usual issues in running scripts are:

1) file and/or directory permissions and/or ownership.

2) PATH.

3) 'she-bang' errors.

4) different environment between shell and cron.

5) different environment between your user ID and the executing user ID.

6) Incorrect line endings -- editing the script/crontab on Windows (cr/lf) and copying it without conversion to Unix (lf).

None of which can be identified with the information provided.

The 'bash 5:command not found' snippet implies that something is wrong on the 5th line of your script.

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to