Don't use it in Solaris! Or your new hostname will be named "-s" :)
So use module suggested by Corion
In reply to Re: `hostname -s` by i5513 in thread `hostname -s` by joeymac