b*l
2 楼
I am having apache server under solaris, in a CGI in C, using
1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
it works
2. system ("cd /my/program/; A"); ------> want to get A executed, but can
not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
what it stands for. check the error_log of apache server, it keeps on saying
some library can not be found, but i dont think it is because of this, the 2nd
system call cant work, since if I type "c
1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
it works
2. system ("cd /my/program/; A"); ------> want to get A executed, but can
not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
what it stands for. check the error_log of apache server, it keeps on saying
some library can not be found, but i dont think it is because of this, the 2nd
system call cant work, since if I type "c
X*r
3 楼
It might be that some library cannot be found. try ldd A to see which
dynamic libraries it needs to run.
【在 b**l 的大作中提到】
: I am having apache server under solaris, in a CGI in C, using
: 1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
: it works
: 2. system ("cd /my/program/; A"); ------> want to get A executed, but can
: not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
: what it stands for. check the error_log of apache server, it keeps on saying
: some library can not be found, but i dont think it is because of this, the 2nd
: system call cant work, since if I type "c
dynamic libraries it needs to run.
【在 b**l 的大作中提到】
: I am having apache server under solaris, in a CGI in C, using
: 1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
: it works
: 2. system ("cd /my/program/; A"); ------> want to get A executed, but can
: not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
: what it stands for. check the error_log of apache server, it keeps on saying
: some library can not be found, but i dont think it is because of this, the 2nd
: system call cant work, since if I type "c
p*f
4 楼
check the manpage of system and waitpid for the explanation of error code.
i would suggest you try system("/my/program/A") or system("cd ...; ./A")
system function use /bin/sh, instead of your login shell, RTFM.
【在 b**l 的大作中提到】
: I am having apache server under solaris, in a CGI in C, using
: 1. system ("cd /my/program/ ; make");---> to generat A(executable) from A.cc,
: it works
: 2. system ("cd /my/program/; A"); ------> want to get A executed, but can
: not, and the return value of the 2nd system call is 35072,(1st is 0) dont know
: what it stands for. check the error_log of apache server, it keeps on saying
: some library can not be found, but i dont think it is because of this, the 2nd
: system call cant work, since if I type "c
相关阅读
multiple network interfaceUnix下怎么看pdf文件?how to protect file being accessed by the root.[转载] FreeBSD vs. Solaris[转载] Save my lifeno cracks/hacks/pirating/warez in this board求助,文件删除不掉.SunOS 5.5 / Solaris 2.5 Installation CDs请问如何在free bsd下安装zip drive关于PINE的问题。。。cxterm compile (successful !!! @_@)问个土问题这几个网络模拟软件哪个比较好啊?[转载] 如何观察程序的执行情况?how to install speedbar on xemacs?[转载] FreeBSD questionInstallation of cxterm on SGI已经搞定!正在UNIX下输入!UNIX的中文TERM怎样将一个大文件分成两个文件?