Root Commands
7210 SAS M, X Basic System Configuration Guide Page 47
echo
Syntax echo [text-to-echo] [extra-text-to-echo] [more-text]
Context <GLOBAL>
Description This command echoes arguments on the command line. The primary use of this command is to allow 
messages to be displayed to the screen in files executed with the exec command.
Parameters text-to-echo — Specifies a text string to be echoed up to 256 characters.
extra-text-to-echo — Specifies more text to be echoed up to 256 characters.
more-text — Specifies more text to be echoed up to 256 characters.
exec
Syntax exec [-echo] [-syntax] {filename | [eof_string]}
Context <GLOBAL>
Description This command executes the contents of a text file as if they were CLI commands entered at the con-
sole. 
Exec commands do not have no versions.
Parameters -echo — Echo the contents of the exec file to the session screen as it executes.
Default Echo disabled.
-syntax — Perform a syntax check of the file without executing the commands. Syntax checking will 
be able to find invalid commands and keywords, but it will not be able to validate erroneous user- 
supplied parameters.
Default Execute file commands.
filename — The text file with CLI commands to execute.
<< — Stdin can be used as the source of commands for the exec command. When stdin is used as the 
exec command input, the command list is terminated with <Ctrl-C>, “EOF<Return>” or 
“eof_string<Return>”.
If an error occurs entering an exec file sourced from stdin, all commands after the command 
returning the error will be silently ignored. The exec command will indicate the command error 
line number when the stdin input is terminated with an end-of-file input.
eof_string — The ASCII printable string used to indicate the end of the exec file when stdin is used as 
the exec file source. <Ctrl-C> and “EOF” can always be used to terminate an exec file sourced 
from stdin.
Default <Ctrl-C>, EOF
Related
Commands
boot-bad-exec command on page 232 — Use this command to configure a URL for a CLI script to 
exec following a failed configuration boot.
boot-good-exec command on page 232 — Use this command to configure a URL for a CLI script to 
exec following a successful configuration boot.