Darwin Help

Back to Index

SystemCommand

Function SystemCommand - execute a system command

Calling Sequence  SystemCommand(operation,addit_args)
Parameters
NameTypeDescription

operation stringthe name of the system operation
addit_args string(optional) additional argument needed
Return Type  numeric
Synopsis This command is provided to isolate system dependencies for performing some operations which require execution of other, standard, programs in the system. The optional additional arguments are dependent on the operation and are typically file names on which the commands should be run. The value returned is the integer value returned by the CallSystem command that will run this operation. This command also allows for simple customization for non-standard installations. In this case, the file lib/SystemCommand may have to be extended with particular commands for your system. The valid values for operation are:

HTML HTML viewer -- one additional parameter, the name of the file which contains html source. The process should be detached to allow stand-alone perusal.


postscript postscript viewer -- one additional parameter, the name of the postscript file. (Usually a file ending in ".ps"). The process should detach to allow stand-alone perusal. This is the command that will show all the darwin plots.


darwin darwin -- two additional parameters, the name of a file with darwin input commands and the name of the file where the output will be placed. The input file should end with a "quit" command, else the spawned darwin will attempt to read from the user once that all the commands are executed.


gimp picture processing software (could be gimp, photoshop or something equivalent) -- one additional parameter, the name of the file (typically a jpg, gif, ps or pdf)


rm remove file(s) -- one additional argument with the name(s) of the file(s) to be removed. The removing is forced and without questions asked.


maple the maple computer algebra system -- two additional parameters, the name of a file with maple input commands and the name of the file where the output will be placed. Maple is run with option quiet to avoid unnecessary/confusing output.

See also CallSystem,   date,   hostname,   TimedCallSystem