This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 如何在C SHELL 中写一行比如 "Error: error code 19" 进standard error. "echo" 命令没有办法写进, 只能写进 standard output. 请诸位DX不吝赐教. 多谢.
-mage(馅饼);
2002-9-12
(#743016@0)
-
Try "echo 1>&2 your comment"if [ $# -ne 1 ]; then
echo 1>&2 Usage: bynum IP-address
exit 127
fi
-unix_learner(unix_learner);
2002-9-12
{92}
(#743067@0)
-
1) ">",">&" 可以决定将STDERR 或 STDOUT 输入文件. 2) 但我想将一段STRING输入STDERR. 这里2在1前发生. 有办法吗? 多谢!
-mage(馅饼);
2002-9-12
(#743088@0)
-
http://www.zid.tugraz.at/peter/unix/ioandpipe.html, hope it helps.
-dibert(呆伯);
2002-9-14
(#747083@0)