Changeset 13732
- Timestamp:
- 10/18/12 09:27:07 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/src/m/os/oshostname.m ¶
r13170 r13732 7 7 8 8 if ispc(), 9 [status,hostname]=system('hostname | sed ''s/-//g''');hostname=hostname(1:end-1); 10 9 [status,hostname]=system('hostname | sed ''s/-//g'''); 11 10 if status, 12 11 error('oshostname error message: could not run hostname command on windows os'); 13 12 end 14 15 13 else 16 14 [status,hostname]=system(['hostname -s | sed ''s/-//g''']); … … 18 16 error('oshostname error message: could not run hostname command on *nix os'); 19 17 end 20 hostname=hostname(1:end-1); 21 hostname=ddewhite(hostname); 18 22 19 end 20 21 %remove carriage return and blank spaces 22 hostname=hostname(1:end-1); 23 hostname=ddewhite(hostname);
Note:
See TracChangeset
for help on using the changeset viewer.