If you are running ANSYS Fluent under a Linux-based operating
system, all characters following the ! up
to the next newline character will be executed in a subshell. Any
further input related to these system commands must be entered in
the window in which you started the program, and any screen output
will also appear in that window. (Note that if you started ANSYS Fluent remotely,
this input and output will be in the window in which you started Cortex.)
>!rm junk.*>!vi script.rp
!pwd and !ls will execute the Linux commands in the directory in which Cortex was
started. The screen output will appear in the window in which you
started ANSYS Fluent, unless you started it remotely, in which case
the output will appear in the window in which you started Cortex.
(Note that !cd executes in a subshell, so
it will not change the working directory either for ANSYS Fluent or
for Cortex, and is therefore not useful.) Typing cd with no arguments will move you to your home directory in the console.
ANSYS Fluent includes three system command aliases (pwd, ls, and chdir) that will be executed in your working directory with output displayed
in the ANSYS Fluent console. Note that these aliases will invoke
the corresponding Linux commands with respect to the parent directory
of the case file. For example, pwd prints
the parent directory of the case file in the ANSYS Fluent console,
while !pwd prints the directory from which
you started ANSYS Fluent in the Linux shell window where you started ANSYS Fluent.
Several examples of system commands entered in the console are shown below. The screen output that will appear in the window in which ANSYS Fluent was started (or, if you started the program remotely, in the window in which Cortex was started) follows the examples.
Example input (in the ANSYS Fluent console):
>!pwd>!ls valve*.*
Example output (in the window in which ANSYS Fluent— or Cortex, if you started the program remotely—was started):
/home/cfd/run/valve valve1.cas valve1.msh valve2.cas valve2.msh