- 论坛徽章:
- 0
|
system(cd /usr/local/batch/office/bin; nohup ./startserver.sh & );
James_Guan 发表于 2011-01-11 16:47 ![]()
If there is only one scalar argument, the argument is checked for shell metacharacters, and if there are any, the entire argument is passed to the system's command shell for parsing (this is /bin/sh -c on Unix platforms, but varies on other platforms). If there are no shell metacharacters in the argument, it is split into words and passed directly to execvp , which is more efficient.
樓上有點小失誤:- system('cd /usr/local/batch/office/bin; nohup ./startserver.sh &');
复制代码 |
|