Anonymous user
Execute a system command: Difference between revisions
→[[Perl]]
(Added Toka) |
|||
Line 210:
'''Interpreter:''' [[Perl]]
# runs command and returns its STDOUT
▲ my $results = `ls`;
# dito, alternative syntax
# runs command and returns its exit status
exec "ls";
# replace current process with another
Also see:
http://perldoc.perl.org/perlipc.html#Using-open()-for-IPC
http://perldoc.perl.org/IPC/Open3.html
==[[PHP]]==
|