Index: testing/iossim/RedirectStdout.sh |
diff --git a/testing/iossim/RedirectStdout.sh b/testing/iossim/RedirectStdout.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..384f0e7cf078e14d71e7d1c4b108a73dcbe8dc5b |
--- /dev/null |
+++ b/testing/iossim/RedirectStdout.sh |
@@ -0,0 +1,14 @@ |
+#!/bin/sh |
+# Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+# |
+# This script executes the command given as the first argument and redirects |
+# the command's stdout to the file given as the second argument. |
+# |
+# Usage: RedirectStdout.sh <command> <output file> |
+# |
+# Example: Write the text 'foo' to a file called out.txt: |
+# RedirectStdout.sh "echo foo" out.txt |
+ |
+exec $1 > $2 |