john-test:/root> ssh -q chicago-ser uname;date
Linux
Fri Oct 13 16:41:11 GMT 2017
How I can print on the same line like this :
Linux Fri Oct 13 16:41:11 GMT 2017
john-test:/root> ssh -q chicago-ser uname;date
Linux
Fri Oct 13 16:41:11 GMT 2017
How I can print on the same line like this :
Linux Fri Oct 13 16:41:11 GMT 2017
You have to convince uname
not to output its <LF> char.
Until you find a way to do so, try
echo $(uname;date)
Linux 13.10.17 19:02
or
{ uname;date; } | tr '\n' ' '
Linux 13.10.17 19:03
Another option, without actually removing the newline, but printing without it:
echo $(ssh -q chicago-ser uname;date)
(in your command, date is running on the local host, which may or may not be the same as the remote host, you'd need add quotes to change that)