Execute a system command
In this task, the goal is to run either the ls
system command, or the pause
system command.
![Task](http://static.miraheze.org/rosettacodewiki/thumb/b/ba/Rcode-button-task-crushed.png/64px-Rcode-button-task-crushed.png)
You are encouraged to solve this task according to the task description, using any language you may know.
C++
Compiler: Visual C++ 2005
system("pause");
Perl
Note the use of grave quotes instead of "normal" single quotes.
`ls`
UNIX Shell
UNIX shells are designed to run system commands as a default operation.
ls
If one wants to capture the command's standard output:
CAPTUREDOUTPUT=$(ls)