exec command


Usage

exec expression [expression ...]

Aliases

system

Description

execute the system command(s) in expressions.

Example 1. Count words in "hallo wold" string, then print name of your machine's operating system.

exec echo hallo world;                 # prints hallo world
exec "echo hallo word" | wc; # counts words in hallo world
exec uname;                            # prints operating system name

Sections

Interacting with Perl and Shell