Are all the characters in your filename legal for your platform? On Windows, for instance, you can't use the ':' character in a filename except after a one-character volume name. Best to use $! and print out error messages, as others have suggested. You also may want to use a numeric timestamp instead.