I would like to execute shell commands in an OCEAN script. For example removing files in order to increase the space on the disk between a simulation and the next. Is it possible?
Thanks in advance.
Try the sh, shell, or system commands as documented in <cds dir>/doc/sklangref/sklangref.pdf
While Roger is correct, there are also built-in SKILL commands for accessing the filesystem and in cases such as this it would be better to use those instead, for example:
Other commands that may be useful include getDirFiles(), fileTimeModified(), isFileName(), makeTempFileName() and getTempDir().
Hope this helps you!
I forgot another very useful command: getWorkingDir().
Also there are isDir(), createDir() and deleteDir().