为什么我的重定向 stderr 文件是空的?

问题描述

我使用来自 https://github.com/horar/openconnect/releases/tag/v8.10

的二进制文件在 Windows 上使用 OpenConnect 8.10

这是openconnect.exe输出

No server specified
 Usage:  openconnect [options] <server>
Open client for multiple VPN protocols,version v8.10

Using GnuTLS 3.6.13. Features present: PKCS#11,RSA software token,HOTP software token,TOTP software token,Yubikey OATH,System keys,DTLS,ESP
      --config=CONfigFILE         Read options from config file
  -V,--version                   Report version number
  -h,--help                      display help text

Set VPN protocol:
...

我想将完整的输出重定向一个文件openconnect.exe 1> openconnect.log 成功将大部分内容重定向文件,只留下

No server specified

在屏幕上。此外,openconnect.exe 2> openconnect.log 删除了那一行,留下

Usage:  openconnect [options] <server>
Open client for multiple VPN protocols,--help                      display help text

Set VPN protocol:
...

然而,结果文件是空的!我做错了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)