Changeset 1599
- Timestamp:
- 08/06/09 08:11:17 (16 years ago)
- Location:
- issm/trunk/src/m/utils
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Nightly/testsgetpackage.m
r1577 r1599 24 24 25 25 elseif strcmpi(string,'cielo_parallel'), 26 27 %get hostname (and remove spaces with strtrim)28 [ret,name]=system('hostname');29 if ret,30 if ispc31 name=getenv('COMPUTERNAME');32 else33 name=getenv('HOSTNAME');34 end35 end36 md.cluster=strtrim(lower(name));37 38 %assign package39 26 package='cielo'; 27 md.cluster=oshostname; 40 28 41 29 else -
issm/trunk/src/m/utils/OS/scpin.m
r1590 r1599 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 mode 13 state=warning('query', 'all'); 14 %remove warnings in case the files do not exist 15 warning off 12 16 for i=1:numel(packages), 13 17 delete(packages{i}); 14 18 end 19 %back to initial warning state 20 warning(state); 15 21 16 22 %if hostname and host are the same, do a simple copy … … 18 24 19 25 for i=1:numel(packages), 20 copyfile( packages{i});26 copyfile([path '/' packages{i}]); 21 27 end 22 28
Note:
See TracChangeset
for help on using the changeset viewer.