rmstdlist
Syntax
rmstdlist -V | -U
rmstdlist [-p] [daysold]
Arguments
- -V
- Displays the command version and exits.
- -U
- Displays command usage information and exits.
- -p
- Displays the names of qualifying standard list file directories. No directories or files are removed. If you do not specify -p, the qualifying standard list files are removed.
- daysold
- The minimum age, in days, of standard list file directories to be displayed or removed. The default is 10 days.
Note:
- Because the list of directories and files shown or deleted using rmstdlist is produced based on the last time they were accessed, the dates shown in the list of directories could differ from the dates displayed in the list of files.
- The rmstdlist command might give different results on different platforms for the same scenario. This is because on UNIX® platforms the command uses the –mtime option of the find command, which is interpreted differently on different UNIX® platforms.
Syntax
As a rule, you should regularly remove standard list files somewhere between every 10-20 days. Larger backlogs may be harder to manage and, if the number of files becomes exceedingly large, you might be required to erase some of them manually before you can use rmstdlist again.
This
problem might occur on AIX systems, particularly, because of a currently
unresolved limitation with the
rm -rf
command. When rmstdlist fails
because of this limitation, it does not display any errors other than
exit code 126. If you would rather have the rm -rf
error
displayed, you can edit the rmstdlist
script in the
following way: - Locate the script in the
TWS_home/bin
directory - Find the line:
rm -rf `cat /tmp/rm$$` 2> /dev/null
- Remove the redirection to
/dev/null
so that the line becomes:rm -rf `cat /tmp/rm$$`
Examples
To display the names of standard
list file directories that are more than 14 days old, run the following
command:
rmstdlist -p 14
To remove
all standard list files (and their directories) that are more than
seven days old, run the following command:
rmstdlist 7