;+ ; NAME: ; run_help ; PURPOSE: ; IDL main program to update the software help files. Run on Linux as a cron job. ; CATEGORY: ; WWW ; CALLING SEQUENCE: ; idl run_help ; INPUTS: ; (none) ; OUTPUTS: ; (none) ; CALLS: ; www_help_smei, www_help_sync.py ; PROCEDURE: ; After executing the startup files, www_help_smei is run and IDL exits again. ; MODIFICATION HISTORY: ; AUG-2000, Paul Hick (UCSD/CASS) ; FEB-2003, Paul Hick (UCSD/CASS; pphick@ucsd.edu) ; Added call to www_help_rsync.py ;- html_local = filepath(root=getenv('HTM'),subdir='help','smei') html_temp = filepath(root=html_local, 'temp') spawn, 'cp '+filepath(root=html_local,'*_list.html')+' '+html_temp copyright = 'UCSD_copyright.html' tmp = do_file(/copy, filepath(root=html_local, copyright), filepath(root=html_temp, copyright)) www_help_smei, destination=html_temp, copyright=copyright www_help_rsi , destination=html_temp ; The html_temp directory should end up empty. spawn, 'www_help_sync.py ' +html_temp+' '+html_local spawn, 'www_help_sync.py -ext=.txt '+html_temp+' '+html_local exit ; Exit IDL