[SR-Users] exec_avp problem

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 17 11:18:47 CEST 2014


Hello,

perhaps is the privileges of the user running kamailio. Is it allowed to 
create a directory under /usr/bin/mwi?

Cheers,
Daniel

On 11/06/14 11:18, Ansuman Manna - Asergis Telecom wrote:
>
> //
>
> /Hi,/
>
> //
>
> /I am  using the exec_avp command as followed:/
>
> //
>
> /exec_avp("/usr/bin/mwi/test.sh $fU"); $fU taking command line arguments./
>
> //
>
> /Here is the shell script content:/
>
> //
>
> /#!/bin/bash -e/
>
> /echo $1/
>
> /logger done! $1/
>
> /logger done/
>
> /mkdir /usr/bin/mwi/$1 || { logger 'touch failed' $? $errorMessage ; 
> exit 1; }/
>
> //
>
> //
>
> /logger is working fine but.mkdir and other system commands are not 
> executing./
>
> /I cant figureout my misses/
>
> //
>
> //
>
> //
>
> //
>
> /Regards,/
>
> //
>
> /Ansuman Manna/
>
> /Software Developer/
>
> /Asergis Telecom Services Private Limited/
>
> /Office Tel: +91 11 6606 8400/
>
> /Office Fax: +91 112554 5156/
>
> _http://www.asergis.in_
>
> Asergis Telecom India
>
> //
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140617/0dd46e8d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 2586 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140617/0dd46e8d/attachment.jpe>


More information about the sr-users mailing list