Date: Thu, 5 Mar 2015 08:47:54 +0000 (UTC) From: Peter Holm <pho@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r279627 - user/pho/stress2/misc Message-ID: <201503050847.t258lsG6016920@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pho Date: Thu Mar 5 08:47:54 2015 New Revision: 279627 URL: https://svnweb.freebsd.org/changeset/base/279627 Log: Do not assume we can write to /dev/tty. Sponsored by: EMC / Isilon storage division Modified: user/pho/stress2/misc/syscall.sh Modified: user/pho/stress2/misc/syscall.sh ============================================================================== --- user/pho/stress2/misc/syscall.sh Thu Mar 5 07:40:41 2015 (r279626) +++ user/pho/stress2/misc/syscall.sh Thu Mar 5 08:47:54 2015 (r279627) @@ -48,7 +48,8 @@ n=$syscall rm -f /tmp/syscall.log while [ $n -gt 0 ]; do - echo "`date '+%T'` syscall $n" | tee /dev/tty >> /tmp/syscall.log + echo "`date '+%T'` syscall $n" + echo "`date '+%T'` syscall $n" >> /tmp/syscall.log for i in `jot 5`; do su ${testuser} -c "sh -c \"../testcases/syscall/syscall -t 30s -i 100 -h -l 100 -k $n\"" done
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503050847.t258lsG6016920>