我有一个艰难的时间搞清楚为什么下面的命令不被Perl中执行的命令..发布系统在Perl
system(". ./setenv.sh");
我已经试过替代品,如
ALT 1 = system ".", "./setenv.sh";
ALT 2 = `. ./setenv.sh`;
不知道我在做什么错.. 任何想法?
编辑:我有一些这里提到的想法想通了,这是我做的..
system(". ./setenv.sh && <other commands that I required the env for here>");
谢谢!
是你看到什么样的症状,即,你怎么知道是不是被执行呢? – Eric 2012-03-14 17:30:25
第一点是什么。 ? – kclair 2012-03-14 17:31:47
当前目录是否可以执行一个可执行命令?你想做什么? – Zaid 2012-03-14 17:31:48