[Asterisk-Dev] Question on using system(find args -exec rm {} \; )

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Wed Jan 4 07:42:46 MST 2006


On Wednesday 04 January 2006 02:58, Noel Sharpe wrote:
> perhaps you need to escape the curly braces?
> exten => s,2,system(find ${PathRecordingTemp}/${CUSTNUM} -mtime +2
> -maxdepth 1  -exec rm \{\} \;)

No, what he really needs to do is to escape the backslash, as both
Asterisk, as well as bash(1), need the escapes:

system(find /foo -exec rm {} \\\;)

This question belongs on the -users list.

-- 
Tilghman



More information about the asterisk-dev mailing list