@system(cmd:string)
@system(cmd:tab)

The first version of this command sends the cmd argument to the shell sh. The calling process waits for the shell to finish executing the command, ignoring SIGINT and SIGQUIT, and blocking SIGCHLD. A false boolean value is returned if an error occured (in this case an error message is issued).

The second version of the command spawn a new process from the executable file specified by cmd[0].

If the file specified by cmd[0] does not contains a slash character, the file parameter is used to construct a pathname, with its path prefix being obtained by a search of the path specified in the environment by the PATH variable (or of /usr/bin:/bin if this variable does not exist). The resulting pathname either refers to an executable object file, or a file of data for an interpreter.

At least cmd[0] must be present in the tab, and should contain the file name of the program being spawned, as an absolute or relative path to the program file to be launched.

The remaining elements in ::antescofo tab are converted into strings to construct the argument list to be made available to the new process.

For example

        @system("ls -l -R ..")
        @system(["ls", "-l", "-R", ".."])

See also System Related Functions: @active_mac_addresses    @arch_darwin    @arch_linux    @arch_windows    [@beat_in_seconds_from_now]    @callback_all_event    @callback_next_event    @callback_start_fastforward    @callback_start_logical_instant    @callback_stop    @callback_stop_fastforward    @callback_stop_logical_instant    @compilation    @configuration_arch    @configuration_audiosample    [@configuration_compiler_name]    [@configuration_compiler_version]    @configuration_debug    @configuration_faust    @configuration_host    [@configuration_odeint]    @configuration_release    @configuration_target_architecture    @current_load_directory    @directory_read    @exe_child_of    @exe_parent    @history_length    @host_date    @info    @is_fastforward    @is_following_on    @is_paused    @is_playing_on    @is_running    @is_stopped    @local_beat_position    @local_tempo    @logical_date    @max_absolute_path    @max_patch_path    @performance_data    @pwd    @seconds_in_beats_from_now    @send_message    @set_max_message_sent_instantaneously    @system    @Tracing    @time    @typecheck    @UnTracing    @usage_resident_memory_size    @usage_statistics    @usage_virtual_memory_size    @user_directory