Index: /issm/trunk-jpl/src/m/os/oshostname.m
===================================================================
--- /issm/trunk-jpl/src/m/os/oshostname.m	(revision 16956)
+++ /issm/trunk-jpl/src/m/os/oshostname.m	(revision 16957)
@@ -7,14 +7,16 @@
 
 if ispc(),
-	[status,hostname]=system('hostname');
+	[status,hostname]=system('hostname < /dev/null');
 	if status, 
 		error('oshostname error message: could not run hostname command on windows os');
 	end
 else
-	[status,hostname]=system(['hostname -s | sed ''s/-//g''']);
+	%See http://www.mathworks.com/help/matlab/ref/system.html "tips" section
+	%We need to add < /dev/null otherwise what is in the clipboard is added
+	[status,hostname]=system('hostname < /dev/null');
+	hostname = strrep(hostname,'-','')
 	if status, 
 		error('oshostname error message: could not run hostname command on *nix os');
 	end
-
 end
 
