<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana size=2><SPAN
class=093003315-30122005>All,</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=093003315-30122005></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=093003315-30122005>I am using
Asterisk 1.0.7 and having a problem using system(find ... -exec rm .. )
application as follows.</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=093003315-30122005></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=093003315-30122005>
<DIV><FONT face=Verdana><SPAN class=890171914-30122005>I<SPAN
class=093003315-30122005>'</SPAN>m trying to perform a system() application in
my dialplan to </SPAN><SPAN class=890171914-30122005>remove all files that are
older than 2 days. I get a n+101 error using the following syntax<SPAN
class=093003315-30122005> (yes, there are files in this directory older than 2
days)</SPAN> and was wondering if you see any obvious mistakes in my
syntax? </SPAN></FONT></DIV>
<DIV><FONT face=Verdana><SPAN
class=890171914-30122005></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana><SPAN class=890171914-30122005>The command works ok on
the C<SPAN class=093003315-30122005>ommand </SPAN>L<SPAN
class=093003315-30122005>ine</SPAN>, but not inside my dialplan. I've
researched a number of resources and the only thing I can find is in the GNU man
pages for FIND where it mentions that I might need to escape the args for the
-exec, but I've tried all the escape combinations with no success!
The FIND works ok without the -exec so I have focused my troubleshooting to
the -exec portion. Any suggestions?</SPAN></FONT></DIV>
<DIV><FONT face=Verdana><SPAN
class=890171914-30122005></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana><SPAN class=890171914-30122005>;this finds &
removes all files in specified directory that are older than 2
days</SPAN></FONT></DIV>
<DIV><FONT face=Verdana><SPAN class=890171914-30122005><SPAN
class=093003315-30122005></SPAN></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=890171914-30122005><FONT face=Verdana
size=2>exten => s,2,system(find ${PathRecordingTemp}/${CUSTNUM} -mtime
+2 -maxdepth 1 -exec rm {} \;) </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV></SPAN></FONT><SPAN class=890171914-30122005><FONT face=Verdana
size=2>Thanks</FONT></SPAN></DIV></SPAN></FONT></DIV>
<P><FONT face=Verdana color=#000080 size=2>Bill DAY- SW Engineer</FONT>
<BR><FONT face=Verdana color=#000080
size=2>---------------------------------------------</FONT> <BR><FONT
face=Verdana color=#000080 size=2>PROSODIE Interactive</FONT> <BR><FONT
face=Verdana color=#000080 size=2>Phone: 954-671-6532<BR><FONT face=Verdana
color=#000080 size=2>Fax: 954-343-5684</FONT></FONT><BR><FONT face=Verdana
color=#000080 size=2>Corporate: 1-866-PROSODIE</FONT> <BR><FONT face=Verdana
color=#000080 size=2><A
href="mailto:bday@prosodiemail.com">bday@prosodiemail.com</A></FONT> <BR><FONT
face=Verdana color=#000080
size=2>---------------------------------------------</FONT> <BR><FONT
face=Verdana color=#000080 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><A
href="http://www.prosodieinteractive.com/"
target=_blank>www.prosodieinteractive.com</A><FONT face="Times New Roman"
color=#000000 size=3> </FONT></SPAN></FONT></P>
<DIV> </DIV></BODY></HTML>