system


SYNOPSIS

system  cmd=<shell command to be executed>  \
    [exedir=<directory from which the command should be executed; defaults to the current working directory>]  \
    [shell=<shell to be used to execute the command; defaults to BASH (Linux, Mac, Solaris, FreeBSD) or CMD (Windows)>]


DESCRIPTION

The system keyword allows executing shell commands entered through the cmd parameter. Remember to enclose commands which contain spaces between quotes, or to prepend a backspace before the space. If the command has a special requirement in terms of the directory from which it should be executed (e.g., because it requires a DLL which is stored in a certain directory), the latter can be specified through the exedir parameter; in its absence, the command will be run from the current working directory. By default, under Linux, Mac, Solaris, FreeBSD the shell parameter defaults to "/usr/bin/env bash -c", while under Windows the default value is "cmd.exe /c".

EXAMPLES

# the following command removes the file intermediate.dat from the current working directory (Linux, Mac, Solaris, FreeBSD)
system cmd="rm intermediate.dat"

# the following command removes the file intermediate.dat from the current working directory (Windows)
system cmd="del intermediate.dat"

# the following command makes a copy of dummy.txt only if it exists; the csh shell is used as the command interpreter (Linux, Mac, Solaris, FreeBSD)
system shell="/usr/bin/env csh -c" cmd="if ( -e dummy.txt ) cp dummy.txt dummy_copy.txt; endif"

Sitemap
Print version
Contact
Mailing list


Last update:
May 31. 2015 20:39:42

Powered by
CMSimple - CMSimple-Styles


Get Open3DGRID at SourceForge.net. Fast, secure and Free Open Source software downloads



Would you like to align your
dataset? Try Open3DALIGN
Just wish to compute a MIF?
Try Open3DGRID