开发者

How to avoid the system command execution successful message?

I am executing the following Perl command:

system ("cvs ci a.txt");开发者_如何学Python 

and it is displaying the CVS message. How to avoid this?


If you're going to be running system commands like this in a unix environment, the obvious thing works.

system("cvs ci a.txt > /dev/null");

You might want to consider something like IPC::Run3, too, to allow you to gather the output from stdout and stderr to use as you see fit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜