ssh truncates command lines after 837 characters. e.g. ssh `hostname` echo /usr/bin/* only gets part way through the files beginning with "a" and gives up part way through a filename.
Umm.. _Don't_ use so long names then? There should be much better ways of accomplishing this.
Created attachment 5707 [details] Fix ssh for > 900 characters in command