Uuugh..for the life of me, i cannot delete sound files using "EXEC System(rm /var/lib/asterisk/sounds/blah.gsm)" through AGI the AGI debug log indicates the command executes successful ( equals 0) but my files are clearly still there. If i try System(rm ...) in my extensions.conf diaplan it'll work there. Is there a bug in the AGI to use "System" ? because i tried to copy files ('cp') as a test, and that didn't work either.. I'm running Trixbox v 1.1.0 Asterisk 1.2.9.1 svn rev 34876 with RAGI -- Anything else, let me know. - Dominic
Dominic Son wrote:> Uuugh..for the life of me, i cannot delete sound files using > "EXEC System(rm /var/lib/asterisk/sounds/blah.gsm)" > > through AGIagi show exec Usage: EXEC <application> <options> Executes <application> with given <options>. So I'd try EXEC System rm foo or EXEC System rm\ foo But I don't understand why you would want to do that instead of just running the command in your script. Regards, Philipp Kempgen -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de Gesch?ftsf?hrer: Stefan Wintermeyer Handelsregister: Neuwied B 14998
Ok, this is what worked: EXEC System "rm -rf /var/lib/asterisk/sounds/blah.gsm" the -rf eliminates the hassle.. a dream come true it worked ! On 10/13/07, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:> On Sat, Oct 13, 2007 at 05:45:26PM -0700, Dominic Son wrote: > > Hi. > > > > You mean to use the AGI funtion in the particular programming > > language? yeah. i tried, same results.. : T > > I guess that this is a permissions issue. Check what you get in the > standard error. > > -- > Tzafrir Cohen > icq#16849755 jabber:tzafrir.cohen at xorcom.com > +972-50-7952406 mailto:tzafrir.cohen at xorcom.com > http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >