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 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 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
相关阅读
Where can I find some C examples about using graphic lib?How to list all color names?Pine: how to sort the received email?Advanced programming in the UNIX environmentAbout exit/logout请问用TINTIN++如何解决中文输入的问题?How to input Chinese under Chinese Version SunOS5.7?(NULL)emacs .el fileshow to decrypt a crypted string??有没有关于UNIX的CERTIFICATE?到哪里去找材料?pine filterFunny articles about emacs and vi. (Zhuan)who knows a tool for running unix file int NTIs that possible to run a matlab program in background?[转载] How to remove an Environment variable on SolarisHow to use Chinese under Unix ?how to kick a remote login user out ?磁带驱动器求救!Re: hiSql server 6.5 or higher version.