[asterisk-users] AGI with System() ?

Tony Mountifield tony at softins.clara.co.uk
Mon Oct 15 04:59:46 CDT 2007


In article <20071014125043.GD2949 at xorcom.com>,
Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> On Sun, Oct 14, 2007 at 05:43:27AM -0700, Dominic Son wrote:
> > 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 !
> 
> -r sure wasn't needed . -f then? But this is the default of rm. The
> shell got in your way?

Looks like one of the shell startup files might have rm aliased to "rm -i"
for all shells, rather than just for interactive shells. So the -f is
needed to override the -i.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list