Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/sms_cleanup.html
Дата изменения: Fri Apr 8 12:46:15 2016
Дата индексирования: Mon Apr 11 01:32:09 2016
Кодировка:
Python: module sms_cleanup
 
 
sms_cleanup
index
sms_cleanup.py

PURPOSE --
Delete an SMS, CCL, and associated files.
 
DEVELOPER --
Don Chance
 
MODIFICATION HISTORY --
 
o Initial implementation 12/14/00
o In pre-SPSS 44.2, smsg -delete always returns a failed status.
  Catch error and continue.  drc  6/13/01
o Remove pre-SPSS 44.2 code.  drc 6/26/01
o Make user query more robust.  drc 6/26/01
o Add sms/ccl version support and overall robustness.  mdr 6/28/01
o Clean up some of the error messages.  mdr 10/15/09

 
Modules
       
sms_util
spss_sys_util
string

 
Functions
       
run(smsname=None, *args)
Delete an SMS, CCL and associated files.
 
Usage:
do sms_cleanup <sms_name> [-ccl]
                          [-tree]
                          [-srt]
                          [-sms]
                          [-all]
 
The '-sms' qualifier will cause a smsg -delete to
be executed.
 
The '-tree' qualifier will cause the TREE files
and directories to be deleted.
 
The '-srt' qualifier will cause the SRT and checklist
files and directories to be deleted.
 
The '-ccl' qualifier will cause a cclist -delete to be
run.
 
The '-all' qualifier will cause all of the above three
options (sms, tree, and ccl) to be executed.
 
When no qualifiers are given, the user will be prompted
for each area to be deleted.
yn_query(text)