Lun*_*oms 7 c linux
我希望my_custom_print()输出出现在控制台上.但是,如果该计划的stderror或者stdout是从重定向shell,他们应该被重定向(正常),但是从输出my_custom_print()应该被忽略.
my_custom_print()
stderror
stdout
shell
是否有可能写出my_custom_print()令人满意的上述条件?如果可能,怎么样?
Mic*_*ker 7
您可以尝试打开/dev/tty,但如果您的程序从没有tty的环境运行,则它不一定存在.
/dev/tty
归档时间:
14 年,2 月 前
查看次数:
279 次
最近记录: