Subject: scrip to get IPF data Folks, Her et mit script (som attachment) til at hente IPF data fra ISDC. Nedenfor i denne mail er "toppen", der beskriver hvordan det virker. Før brug skal det modificeres (som beskrevet) med user IDs som du vil/kan bruge. I sin nuværende form er sciptet interaktivt fordi det ikke er helt smart at gemme sine passwords direkte i scriptet, men der er sikkert smarte måder (stay tuned). Der kræves at du har adgang til "expect" pakken. It should work.... men spørg hellere. (Dette script er blevet til ved brug af et andet expect script, der hedder "autoexpect". Det er et system til at recorde en manuel session til et expect script, der så kan rettes til for automatisk brug.) Søren Info fra Get_IPF.exp # This script is used for retrieving the JEM-X Instrument Station # data from ISDC to DSRI by ftp. # # Prepared by Søren Brandt, sb@dsri.dk Aug 2004 # # The procedure is to log into ISDC by slogin, go to the directory # where data are stored and then do ftp to DSRI # The script will prompt for the password to ISDC and DSRI. # The files specified to be ftp'ed will be moved to a subdirectory # named "sent" as a backup in case the ftp for some reason was # unsuccessful # # ______________________________________________________________ # Usage: expect [name_of_this_script] [filemask] # # The script will retrieve all files in the ISDC directory of # the form [filemask]*.IPF # So if filemask is set to 0408 the script will retrieve all # IPF files from Aug 2004 # Providing no filemask will retrieve all files of the form *.IPF # # ______________________________________________________________ # # NOTE: ________________________________________________________ # Please costumize the script to use the appropriate user ID's # for the login accounts to be used at ISDC and DSRI contained # in the parameters ISDCuser and DSRIuser below. # The directories used at ISDC and DSRI for the data are # configured in the parameters ISDC_IPFdir and DSRI_IPFdir # # The userID's selected must must have the appropriate permissions # in the relevant subdirectories at ISDC and DSRI # _______________________________________________________________ # # define the user ID's at ISDC and DSRI # set ISDCuser "brandt" set DSRIuser "sb" # # define the data directories at ISD and DSRI # set ISDC_IPFdir "/unsaved_data/jemx/ipf" set DSRI_IPFdir "/r2/jemx/ISDC" #