I am writing a program to gather information specific to a laptop, linux server, desktop, workstation. The first step is to identify where my program is running. I am having trouble achieving this part. If you could point me in the right direction, would be very helpful.
I realize there might not be one solution and have to probably combine multiple solutions.
Thank you