阅读背景:

如何检测stdout是否被重定向到管道(而不是文件,字符设备,终端或套接字)?

来源:互联网 

Ideally, this would be scriptable in shell, but Perl or Python would be fine. C code could be helpful, but probably fails cost/benefit.Ideally, this would be scriptable in shell, but




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: