<html><body bgcolor="#FFFFFF"><div>I did set the path variable but the gnuwin stuff was at the end of the path. The windows find.exe was conflicting with the gnuwin find.exe but rm was working fine on its own with gnuwin at the end of the path. </div><div><br>Sent from mobile</div><div><br>On Aug 25, 2011, at 8:19 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>This proves my earlier, initial point. For a unix/win environment, you must set path variable. <br><br>Sent from my iPhone</div><div><br>On Aug 25, 2011, at 8:02 PM, Jamie Forrest <<a href="mailto:jamie@jamieforrest.com"><a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a></a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div><div>This worked. Thank you!!!!</div><div><br></div><div><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 7:43 PM, Adam Rosi-Kessel <span dir="ltr"><<a href="mailto:adam@rosi-kessel.org"><a href="mailto:adam@rosi-kessel.org">adam@rosi-kessel.org</a></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>Try forcing the path to rm<br><br>Sent from my iPhone</div><div><div></div><div class="h5">
<div><br>On Aug 25, 2011, at 7:30 PM, Jamie Forrest <<a href="mailto:jamie@jamieforrest.com" target="_blank"><a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a></a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div>I'll try the xargs -i. I'd tried inserting echo before the rm and ended up getting the same error as the rm, but this time it was happening on the echo.<br>
<br>Sent from my iPad</div><div><br>On Aug 25, 2011, at 7:18 PM, Adam Rosi-Kessel <<a href="mailto:adam@rosi-kessel.org" target="_blank"><a href="mailto:adam@rosi-kessel.org">adam@rosi-kessel.org</a></a>> wrote:<br><br></div><div></div><blockquote type="cite">
<div><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" target="_blank"></a><a href="mailto:jamie@jamieforrest.com" target="_blank"><a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a></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" target="_blank"></a><a href="mailto:adam@rosi-kessel.org" target="_blank"><a href="mailto:adam@rosi-kessel.org">adam@rosi-kessel.org</a></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" target="_blank"></a><a href="mailto:jamie@jamieforrest.com" target="_blank"></a><a href="mailto:jamie@jamieforrest.com" target="_blank"><a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a></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" target="_blank"></a><a href="mailto:adam@rosi-kessel.org" target="_blank"></a><a href="mailto:adam@rosi-kessel.org" target="_blank"><a href="mailto:adam@rosi-kessel.org">adam@rosi-kessel.org</a></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><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" target="_blank"></a><a href="mailto:jamie@jamieforrest.com" target="_blank"><a href="mailto:jamie@jamieforrest.com">jamie@jamieforrest.com</a></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" target="_blank"></a><a href="http://about.me/jamieforrest" target="_blank"><a href="http://about.me/jamieforrest">http://about.me/jamieforrest</a></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" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></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" target="_blank"></a><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></a></span><br>
</div></blockquote></div><br>_______________________________________________<br>
Linux-disciples mailing list<br>
<a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></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" target="_blank"></a><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></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" target="_blank"></a><a href="http://about.me/jamieforrest" target="_blank"><a href="http://about.me/jamieforrest">http://about.me/jamieforrest</a></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" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></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" target="_blank"></a><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></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" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></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" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></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" target="_blank"></a><a href="mailto:Linux-disciples@lists.bostoncoop.net" target="_blank"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></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" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></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" target="_blank"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></a></span><br>
<span><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></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" target="_blank"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></a></span><br>
<span><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></a></span><br></div></blockquote></div></div></div><br>_______________________________________________<br>
Linux-disciples mailing list<br>
<a href="mailto:Linux-disciples@lists.bostoncoop.net"><a href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></a><br>
<a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples" target="_blank"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://about.me/jamieforrest" target="_blank"><a href="http://about.me/jamieforrest">http://about.me/jamieforrest</a></a><br>
</div></div>
</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 href="mailto:Linux-disciples@lists.bostoncoop.net">Linux-disciples@lists.bostoncoop.net</a></a></span><br><span><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples"><a href="http://lists.bostoncoop.net/mailman/listinfo/linux-disciples">http://lists.bostoncoop.net/mailman/listinfo/linux-disciples</a></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>