Is the 'python' interpreter binary actually located in
/home/docas/Desktop? That seems unlikely, somehow, though I guess
logically possible.
If it does, in fact, exist there, does it have execute permissions?
I would recommend:
which python
On my system, that results in:
sasha at abalashov-laptop:~$ which python
/usr/bin/python
From which it follows that I would do:
System(/usr/bin/python /home/docas/Desktop/mess1.py)
DOCAS DUDU ZULU wrote:
> hi
>
> i am trying to execute the command from the dialplan as follows:
>
> exten => 1987,1,Playback(posix-restarting)
> exten => 1987,2,wait(1)
> exten => 1987,3,System(/home/docas/Desktop/python mess1.py)
> exten => 1987,4,Hangup
>
>
> i get the error on asterisk CLI system_exec_helper:Unable to execute
> "/home/docas/Desktop/python mess1.py "
>
> can anybody please help me on what i am doing wrong
>
> thanks
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Alex Balashov - Principal
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (678) 237-1775