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 4c54c0011c4a3d2c7e44c076e9cbc3bfedc6d5f0..81df54f6c1b8a7280b3ee0486fae1061c0276fd6 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 "${@}"