|
Posted by Jim Gibson on May 21, 2008, 4:08 pm
Please log in for more thread options
In article
> I want to run unix shell commands through perl script but I do not
> want to echo the output of these commands on the terminal.
> Is there a way in per function I can achieve this?
Sure. Either capture the output of the shell command by using the qx()
operator or, equivalently, backticks (`command`):
my $output = qx("command");
or by redirecting the output of the command to a file or the null
device:
system("command > /dev/null");
--
Jim Gibson
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
http://www.usenet.com
|