I believe your example for /tmp/file2 should work. give it a try.