Clean Up Log Files
All log files are normally stored under the subdirectory ./wx_logs. To remove all obsolete log files in the current working directory, use the wx clean command.
wx clean
This command cleans up obsolete log files and environment files that have been generated by jobs submitted to the scheduler.
wx: Usage Message
WX CLEAN:
This command cleans up obsolete log files and environment files
that have been generated by jobs submitted to the scheduler.
By default the command cleans the current working directory
(i.e. removes logs and environment files of the jobs executed in the
current working directory).
If a list of directories is provided, the command will clean up
the files in those directories instead.
USAGE:
% wx clean [OPTIONS] [LIST_OF_DIRS]
OPTIONS:
-deep N -- Clean the jobs from all directories in which the user
has executed jobs in the past N days. The directories
are found from the journals.
-dir <dir> -- Specify additional paths to check.
-h -- Help usage message.
-nozap -- Do not 'zap' isolated nodes. Allows the cleaning of the
current directory to proceed faster.
-P PERIOD -- Install a periodic job to run the cleaning automatically.
-R -- Clean the directories recursively.
-v -- Increase verbosity.
-zap -- Do 'zap' of isolated nodes (see man vsz for more info).
EXAMPLES:
% wx clean -h
% wx clean
% wx clean -dir /tools/logs/VNC_LOGS -dir /scratch/logs/VNC
% wx clean . /tools/logs/VNC_LOGS /scratch/logs/VNC
% wx clean -zap
% wx clean -deep 10
% wx clean -deep 3 -P 3d
Examples
% wx clean -h
% wx clean
% wx clean -dir /tools/logs/VNC_LOGS -dir /scratch/logs/VNC
% wx clean . /tools/logs/VNC_LOGS /scratch/logs/VNC
% wx clean -zap
% wx clean -deep 10
% wx clean -deep 3 -P 3d
Comments
% wx clean -R
% wx clean -nozap
% wx clean -deep 10
% wx clean -P 1d