由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - 一个perl初级问题
相关主题
[转载] Perl for programmers(10): A template for CGI file谁推荐一个CGI/PERL写的论坛程序?最好是汉化过的
perl cgis: how to send back frame webpage?\\\\\\\\\\\\\\\\A question about CGI//////////////
Help me with a stupid question.Help on View DB talbe using Perl CGI
**********Help Needed! 怎样在最短的时间内学会CGI??急!!!************[转载] How many version of Perl/CGI are there?
怎么样在个人主页上运行CGI?求助: 关于Perl and Javascript
what is cgi?Perl CGI to MySQL problem
[转载] Perl CGI and Excel files在CGI程序中有何好方法返回HTML
那位大虾知道那里有免费空间支持ASP,PHP,CGI或PERL?how to avoid security holes for perl CGI code using checkbo (转载)
相关话题的讨论汇总
话题: pipe话题: prog话题: exe话题: perl话题: open
进入BuildingWeb版参与讨论
1 (共1页)
a****g
发帖数: 6
1
我想在perl cgi 中运行一个C程序并得到其结果(name: exe_prog ,输出结果是一个 int array).
当我单独运行exe_prog时,结果如下:
》exe_prog
12 13 14 16 17 19 21
my CGI script is :
...
unless (open PIPE, "exe_prog |" ) {
print "can't open file";
}
$result = ;
close (PIPE);
...
但打开时,总显示 "can't open file".
但当我单独写一个同样的perl 程序 perl_prog.pl :
unless (open PIPE, "exe_prog |" ) {
print "can't open file";
}
$result = ;
close (PIPE);
并运行时,结果正常:
》perl_prog.pl
12 13 14 16 17 19 21
(all files in the same dire
a****f
发帖数: 29
2
看看是否是`路径问题, 如执行文件路径和 sh 的路径.
在cgi 下很多 env 变量是没有的.

【在 a****g 的大作中提到】
: 我想在perl cgi 中运行一个C程序并得到其结果(name: exe_prog ,输出结果是一个 int array).
: 当我单独运行exe_prog时,结果如下:
: 》exe_prog
: 12 13 14 16 17 19 21
: my CGI script is :
: ...
: unless (open PIPE, "exe_prog |" ) {
: print "can't open file";
: }
: $result = ;

1 (共1页)
进入BuildingWeb版参与讨论
相关主题
how to avoid security holes for perl CGI code using checkbo (转载)怎么样在个人主页上运行CGI?
初级perl问题what is cgi?
UBB一问[转载] Perl CGI and Excel files
[转载] html网页设计求教那位大虾知道那里有免费空间支持ASP,PHP,CGI或PERL?
[转载] Perl for programmers(10): A template for CGI file谁推荐一个CGI/PERL写的论坛程序?最好是汉化过的
perl cgis: how to send back frame webpage?\\\\\\\\\\\\\\\\A question about CGI//////////////
Help me with a stupid question.Help on View DB talbe using Perl CGI
**********Help Needed! 怎样在最短的时间内学会CGI??急!!!************[转载] How many version of Perl/CGI are there?
相关话题的讨论汇总
话题: pipe话题: prog话题: exe话题: perl话题: open