Changeset 22169
- Timestamp:
- 10/12/17 14:45:29 (7 years ago)
- Location:
- issm/trunk/src/m/os
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/os/issmbbftpin.m
r20500 r22169 10 10 11 11 %first be sure packages are not in the current directory, this could conflict with pscp on windows. 12 %get initial warning mode13 state=warning('query', 'all');14 %remove warnings in case the files do not exist15 warning off16 12 for i=1:numel(packages), 17 delete(packages{i}); 13 if exist(packages{i},'file'), 14 delete(packages{i}); 15 end 18 16 end 19 %back to initial warning state20 warning(state);21 17 22 18 %if hostname and host are the same, do a simple copy … … 31 27 %build a string of the type: bbftp -s -u elarour -e 'setnbstream 8; cd /nobackupp10/elarour/Testing/Interactive3/; get Antarctica.outbin' pfe1.nas.nasa.gov 32 28 command=['!bbftp -s -V -u ' login ' -e ''setnbstream 8; cd ' path '; ']; 33 for i=1: length(packages),29 for i=1:numel(packages), 34 30 command=[command 'get ' packages{i} ';']; 35 31 end … … 40 36 %check bbftp worked 41 37 for i=1:numel(packages), 42 if ~exist(['./' packages{i}] ),38 if ~exist(['./' packages{i}],'file'), 43 39 error('scpin error message: could not call scp on *nix system'); 44 40 end 45 41 end 46 47 42 end -
issm/trunk/src/m/os/issmscpin.m
r13975 r22169 10 10 11 11 %first be sure packages are not in the current directory, this could conflict with pscp on windows. 12 %get initial warning mode13 state=warning('query', 'all');14 %remove warnings in case the files do not exist15 warning off16 12 for i=1:numel(packages), 17 delete(packages{i}); 13 if exist(packages{i},'file'), 14 delete(packages{i}); 15 end 18 16 end 19 %back to initial warning state20 warning(state);21 17 22 18 %if hostname and host are the same, do a simple copy … … 50 46 51 47 else 52 %just use standard unix scp 53 %string to copy multiple files using scp: 48 %just use standard unix scp string to copy multiple files using scp: 54 49 if numel(packages)==1, 55 50 string=packages{1};
Note:
See TracChangeset
for help on using the changeset viewer.