在新的终端窗口(C ++,OSX)中运行另一个程序

时间:2019-05-02 17:16:57

标签: c++ linux macos

我正在为文件传输程序rsync编写包装程序。我想根据用户输入生成rsync命令,然后在新的终端窗口中运行该命令。

例如:

string rsync_command = get_command(user_input)
run_command_in_new_window(rsync_command) //This is the function that I need to know how to implement.

如何用c ++完成?该程序是为OSX编写的,但理想情况下,我也希望能够在Linux机器上运行它。

0 个答案:

没有答案
相关问题