How to resolve the algorithm Execute a system command step by step in the TUSCRIPT programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Execute a system command step by step in the TUSCRIPT programming language
Table of Contents
Problem Statement
Run either the ls system command (dir on Windows), or the pause system command.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Execute a system command step by step in the TUSCRIPT programming language
Source code in the tuscript programming language
$$ MODE TUSCRIPT
system=SYSTEM ()
IF (system=="WIN") THEN
EXECUTE "dir"
ELSEIF (system.sw."LIN") THEN
EXECUTE "ls -l"
ENDIF
You may also check:How to resolve the algorithm Order two numerical lists step by step in the Tcl programming language
You may also check:How to resolve the algorithm Exceptions/Catch an exception thrown in a nested call step by step in the Maple programming language
You may also check:How to resolve the algorithm Compiler/lexical analyzer step by step in the OCaml programming language
You may also check:How to resolve the algorithm Factors of a Mersenne number step by step in the Crystal programming language
You may also check:How to resolve the algorithm Longest common substring step by step in the Dyalect programming language