[422372]: / functions / adminfunc / is_sccn.m

Download this file

15 lines (12 with data), 392 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
function bool = is_sccn()
% IS_SCCN - returns 1 if computer is located at SCCN (Swartz Center
% for computational Neuroscience) and 0 otherwise
bool = 0;
domnane = ' ';
try
eval([ 'if isunix, [tmp domname] = unix(''hostname'');' ...
'end;' ...
'bool = findstr(domname(1:end-1), ''ucsd.edu'');' ...
'if isempty(bool), bool=0; else bool=1; end;' ], '');
catch
end