Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.execv with stdin support #1098

Closed
rtoslab opened this issue Dec 1, 2020 · 3 comments
Closed

os.execv with stdin support #1098

rtoslab opened this issue Dec 1, 2020 · 3 comments

Comments

@rtoslab
Copy link

rtoslab commented Dec 1, 2020

你在什么场景下需要该功能?

为支持某RTOS操作系统下所需的二次链接过程,需要调用外部脚本同时接收stdin并输出stdout。

描述可能的解决方案

目前暂时使用生成外部批处理命令的形式实现,跨平台支持比较弱。

描述你认为的候选方案

需要支持stdin的os.execv以方便调用外部脚本处理ctor、dtor中间文件生成。

其他信息

无。

@waruqi
Copy link
Member

waruqi commented Dec 1, 2020

回头我会考虑支持的

@waruqi waruqi added this to the v2.5.1 milestone Dec 1, 2020
@waruqi
Copy link
Member

waruqi commented Dec 5, 2020

我dev分支上已经支持了,需要全量更新下,可以到github ci下载最近的安装包,os.execv("xx",{}, {stdin = "c:\ffggg.txt"})

@rtoslab
Copy link
Author

rtoslab commented Dec 6, 2020

已确认功能正常可用

@rtoslab rtoslab closed this as completed Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants