[Linux-disciples] rm: invalid argument
Jamie Forrest
jamie at jamieforrest.com
Thu Aug 25 17:39:43 EDT 2011
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:
C:\gnuwin32\GetGnuWin32\gnuwin32\bin\find.exe /mydir/*.xml -mmin +20 -exec
rm -f {} \ ;
This is *working fine* 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):
C:\gnuwin32\GetGnuWin32\gnuwin32\bin\find.exe: rm: Invalid argument
C:\gnuwin32\GetGnuWin32\gnuwin32\bin\find.exe: error waiting for rm: No
child processes
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.)
Thanks!
Jamie
--
http://about.me/jamieforrest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20110825/3392015f/attachment.htm
More information about the Linux-disciples
mailing list