3.2.4. Remote File and Shell Commands

For reasons of convenience and security, shell and file system commands behave differently in Fluent Remote Console than in an interactive or batch Fluent session. Specifically:

The remote file system commands provided in the Fluent Remote Console are restricted to operations within the Fluent as a Server session working directory and its subdirectories. These commands will return an error if you attempt to access a file or directory outside of the Fluent as a Server directory.

Warning:  Although the restrictions placed on shell and file system commands in the Remote Console provide a measure of protection against unwanted remote file system access and program execution, they cannot guard against every threat and must not be relied upon for complete security. For example, commands issued from a journal file in the remote Fluent as a Server session will not be subject to the same restrictions. Therefore, it is important that the Fluent as a Server session is started with appropriate permissions on the remote machine to maximize remote system security.

The available shell and file system commands in Fluent Remote Console are as follows:


Note:  Unless otherwise noted, wildcards are not supported.


tui.ls <name>

list the contents of directory <name>. If <name> refers to a single file, list that file. If <name> is omitted, list the contents of the current directory.

tui.dir <name>

same as ls

tui.pwd

print the current directory on the server machine. The path is returned relative to the base working directory of the Fluent as a Server session, which appears as $home. Note that $home is merely a symbol for the base working directory in the path display. You cannot use $home in a path specifier with tui.chdir.

tui.chdir <directory>

change to <directory>. If <directory> is omitted, return to the base working directory of the Fluent as a Server session.

tui.cd <directory>

same as chdir

tui.mkdir <name>

create a new directory called <name>.

tui.rmdir <directory>

delete the directory called <directory>. Note that <directory> must be empty before it can be deleted.

tui.cp <source> <dest>

copy the file <source> to <dest>. If <dest> exists, it is overwritten. If <dest> is an existing directory, <source> is copied into <dest>.

tui.copy <source> <dest>

same as cp.

tui.rename <source> <dest>

rename the file <source> to <dest>. If <dest> exists, it is overwritten. Note that you can move a file into a directory by forming <dest> as <directory>/<filename>.

tui.delete <file>

delete the file named <file>.


Release 18.2 - © ANSYS, Inc. All rights reserved.