开发者

How to avoid the system command execution successful message?

开发者 https://www.devze.com 2023-01-11 00:07 出处:网络
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

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

精彩评论

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

关注公众号