in reply to using pipes in a system() call
Your command has a syntax error. You are missing a semicolon. It is also possible that $UID is not defined when you try to use it.
... -print \; | ... [download]