发新话题
打印

请问各位:Gtk中怎么运行shell命令、脚本

请问各位:Gtk中怎么运行shell命令、脚本

最近在搞毕业设计,碰到这个问题,不只如何解决:
    我是想在单击一个按钮时执行shell命令,命令多时就用一个文件存所有命令,然后执行这个文件。
    现在不知如何作到,望各位指教。      

TOP

execv /bin/sh
and take your shell command in as an arg      
class faraway : public GNU { public: faraway() : _M_name("faraway"), _M_sex("Male"), _M_age(26) { } ~faraway(); private: std::string _M_name; std::string _M_sex; unsigned long _M_age; };

TOP

发新话题