Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我想请问下,怎么调用CGI脚本的? #28

Open
SingleXuu opened this issue Jan 27, 2018 · 7 comments
Open

我想请问下,怎么调用CGI脚本的? #28

SingleXuu opened this issue Jan 27, 2018 · 7 comments

Comments

@SingleXuu
Copy link

path不是html文件的路径吗?并没有执行脚本的操作啊,我这里没有看懂,还有能给我举个测试实例吗?

@zntx
Copy link

zntx commented Feb 8, 2018

你可以从中中加打印, 查看
buf=POST /color.cgi HTTP/1.1
调用的是 htdocs/color.cgi
z注意要用执行权限

@SingleXuu
Copy link
Author

我有点没明白呀

@linzewei1991
Copy link

execl(path, path, NULL);
这行代码就是子进程在执行CGI脚本

@Fairy1018
Copy link

execl(path,NULL)出错是怎么回事呢?已经安装了perl v5.22

@Fairy1018
Copy link

解决了,color.cgi中执行路径是/usr/local/bin/perl 实际安装之后是/usr/bin/perl,修改为perl实际执行路径即可。

@AlbertTJU
Copy link

解决了,color.cgi中执行路径是/usr/local/bin/perl 实际安装之后是/usr/bin/perl,修改为perl实际执行路径即可。

怎样修改执行路径啊,大佬

@appx-cai
Copy link

appx-cai commented May 9, 2022

麻烦问下,调用color.cgi失败怎么修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants