Console
Console#
With command redirection one can redirect standard streams like stdin, stdout and stderr to user-specified locations. Quite often it is useful to redirect the output of a program to a text file.
-
redirecting stdout to a file
-
redirecting stderr to a file
-
redirecting stdout and stderr to a file
Note: under Weka quite often the output is printed to stderr, e.g., if one is using the -p 0 option from the commandline to print the predicted values for a test file:
or if one already has a trained model:
SimpleCLI#
One can perform a basic redirection also in the SimpleCLI, e.g.:
Note: the > must be preceded and followed by a space, otherwise it is not recognized as redirection, but part of another parameter.