Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm writing a simple shell script:

find datafiles/ -type f -print0 | xargs -0 md5sum > datafiles.md5
In Cygwin under Vista, it just sits there and nothing happens. It works fine on Linux. What could be the problem?? fyi:
$ find --version
find (GNU findutils) 4.4.0
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=0)
share|improve this question

migrated from stackoverflow.com Dec 7 '09 at 15:28

This question came from our site for professional and enthusiast programmers.

    
I found a related posting here, with no solution: cygwin.com/ml/cygwin/2009-07/msg00245.html –  Alex R Nov 19 '09 at 15:35
    
For what it's worth, it works fine under cygwin/XP. –  Jonathan Feinberg Nov 19 '09 at 15:38
    
I use it under Cygwin/Vista all the time and it works fine for me. –  Aaron Nov 19 '09 at 15:54
    
I just found out it works fine with local filesystems. It only doesn't work over the network! –  Alex R Nov 20 '09 at 1:33

1 Answer 1

up vote 0 down vote accepted

Take the command apart. What does

find datafiles/ -type f -print0

give you? What does

find datafiles/ -type f

give you? What does

find datafiles/

give you? What does

ls -ld datafiles/

give you?

share|improve this answer
    
The 'find' command seems to think everything is a folder (-type f doesn't work). The problem only affects files on a particular network mount that I was trying to work with. I finally gave up and took a different approach. –  Alex R Dec 22 '09 at 0:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.