Linux請問一個shell script的問題 - LinuxMason · 2009-04-27Table of ContentsPostCommentsRelated Posts 現在在實做一個embedded linux上的功能 想用shell script把C的執行檔回傳值抓出來 目前是知道可以用$?抓出上一個執行檔的exit值 但是前陣子發現一個問題 因為我的C執行檔也是用system function call出來的 所以他的$?只會抓出最原先發出system call的exit值 而那並不是我想要的 所以請教這裡的先進們 是否有方法可以讓shell script抓到執行檔的回傳值呢? -- LinuxAll CommentsLiam2009-05-02看來只好在你的 C binary 裡 call setenv() 了Related PostsVim 功能選單亂碼Debian無法安裝mplayer[問題] pidgin/msn 80048820 延伸 8004 …NFS無法掛載[問題] pidgin/msn 80048820 延伸 80048439
All Comments