Bash script for uniquely identifying linux and solaris platforms

This bash script creates a unique platform identifier string for linux (including cygwin) and solaris. It is useful for creating directory trees on network shared volumes that store data for different OS’s.

3 thoughts on “Bash script for uniquely identifying linux and solaris platforms”

  1. Your script doesn’t run on a Solaris system.

    uname doesn’t have a -o option in Solaris (apparently), so your function is blowing up.

    1. I am not surprised. It was never intended to work for a non-linux distribution. If you manage to get it working for solaris and want me to post it, I would be happy to.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.