Use strace's -o option.
authorWayne Davison <wayned@samba.org>
Sat, 4 Jun 2011 15:56:03 +0000 (15:56 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 4 Jun 2011 15:56:03 +0000 (15:56 +0000)
rsync-debug

index 4c54c00..81df54f 100644 (file)
@@ -4,4 +4,5 @@ ulimit -c unlimited
 
 # Some systems have "truss" or "tusc" instead of "strace".
 # The -f option tells strace to follow children too.
-strace -f rsync "${@}" 2>/tmp/rsync-$$.out
+# The -o option tells strace where to send its output.
+strace -f -o /tmp/rsync-$$.out rsync "${@}"