[Fluent Inc. Logo] return to home search
next up previous contents index

3.4.1 System Commands for UNIX-based Operating Systems

If you are running FLUENT under a UNIX-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 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 UNIX commands in the directory in which Cortex was started. The screen output will appear in the window in which you started 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 FLUENT or for Cortex, and is therefore not useful.) Typing cd with no arguments will move you to your home directory in the console.

FLUENT includes three system command aliases ( pwd, ls, and chdir) that will be executed in your working directory with output displayed in the FLUENT console. Note that these aliases will invoke the corresponding UNIX commands with respect to the parent directory of the case file. For example, pwd prints the parent directory of the case file in the FLUENT console, while !pwd prints the directory from which you started FLUENT in the UNIX shell window where you started FLUENT.

Several examples of system commands entered in the console are shown below. The screen output that will appear in the window in which 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 FLUENT console):

 > !pwd


 > !ls valve*.*

Example output (in the window in which FLUENT--or Cortex, if you started the program remotely--was started):

 /home/cfd/run/valve
 valve1.cas   valve1.msh   valve2.cas   valve2.msh


next up previous contents index Previous: 3.4 System Commands
Up: 3.4 System Commands
Next: 3.4.2 System Commands for
© Fluent Inc. 2006-09-20