how to get ubuntu machine id using python

Refresh

2 weeks ago

Views

16 time

-1

I want the get the machine id from my system by using python code. My machine id is stored in "/var/lib/dbus/machine-id" . The machine id was "556b837c93cd4b8dbd3a1c01f468d9f5" How to get the number from the file and assign it to a variable using python. Any code suggestions..

0 answers