<html><head></head><body bgcolor="#FFFFFF"><div>Ah, I meant xargs -i rm '{}' </div><div><br></div><div>It should be only one argument per line. </div><div><br></div><div>You can also try inserting echo before rm in your -exec version and check out that output. <br><br>Sent from my iPhone</div><div><br>On Aug 25, 2011, at 7:08 PM, Jamie Forrest <<a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div>Tried that and got argument list too long. <br><br>Sent from mobile</div><div><br>On Aug 25, 2011, at 7:00 PM, Adam Rosi-Kessel <<a href="mailto:adam@rosi-kessel.org">adam@rosi-kessel.org</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div>Try piping into xargs rm instead just as a test. <br><br>Sent from my iPhone</div><div><br>On Aug 25, 2011, at 6:56 PM, Jamie Forrest <<a href="mailto:jamie@jamieforrest.com"></a><a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div class="gmail_quote">On Thu, Aug 25, 2011 at 6:47 PM, Adam Rosi-Kessel <span dir="ltr"><<a href="mailto:adam@rosi-kessel.org"></a><a href="mailto:adam@rosi-kessel.org">adam@rosi-kessel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>What difference, if any, between servers? Generally Cygwin path should put cyg commands ahead of windows/DOS ones. Did you try putting single quotes around the {}?<br></div></div></blockquote><div>
<br></div><div>Yeah, single quotes didn't help. AFAIK the environments are identical.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div><div class="h5"><div>On Aug 25, 2011, at 5:39 PM, Jamie Forrest <<a href="mailto:jamie@jamieforrest.com" target="_blank"></a><a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a>> wrote:<br><br></div><div></div><blockquote type="cite">
<div>This is a bit off topic because I am using gnuwin32 on Windows Server 2003 SP2, but I figured people here might be able to help. I've written a find command to find all xml files in a certain directory that are older than 20 minutes, and delete them. Here's the command:<br>
<br><font face="'courier new', monospace">C:\gnuwin32\GetGnuWin32\gnuwin32\bin\find.exe /mydir/*.xml -mmin +20 -exec rm -f {} \ ;</font><div><font face="'courier new', monospace"><br>
</font></div><div><font face="'courier new', monospace"><span style="font-family:arial">This is <b>working fine</b> on 2 of my 3 servers. On the third server, I am getting this error over and over (likely on every file in the directory):</span><br>
</font></div><div><br></div><div><span style="font-family:'courier new', monospace">C:\gnuwin32\GetGnuWin32\gnuwin32\bin\find.exe: rm: Invalid argument</span></div><div><font face="'courier new', monospace">C:\gnuwin32\GetGnuWin32\gnuwin32\bin\find.exe: error waiting for rm: No child processes<br>
</font></div><div><font face="'courier new', monospace"><br></font></div><div>Google hasn't been much help. Do you guys have any leads? (FYI the reason I am calling the full path on find.exe is because the default "find" command points to the dos "find" command, and I don't want to mess with the PATH to fix this.)</div>
<div><br></div><div>Thanks!</div><div>Jamie</div><div><br></div><div>-- <br><a href="http://about.me/jamieforrest" target="_blank"></a><a href="http://about.me/jamieforrest">http://about.me/jamieforrest</a><br><br></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Linux-disciples mailing list</span><br><span><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></span><br>
<span><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"></a><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></span><br></div></blockquote></div><br>_______________________________________________<br>
Linux-disciples mailing list<br>
<a href="mailto:Linux-disciples@lists.bostoncoop.net"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a><br>
<a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"></a><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://about.me/jamieforrest" target="_blank"></a><a href="http://about.me/jamieforrest">http://about.me/jamieforrest</a><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Linux-disciples mailing list</span><br><span><a href="mailto:Linux-disciples@lists.bostoncoop.net"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></span><br><span><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples"></a><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></span><br></div></blockquote></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Linux-disciples mailing list</span><br><span><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></span><br><span><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></span><br></div></blockquote></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Linux-disciples mailing list</span><br><span><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></span><br><span><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></span><br></div></blockquote></body></html>