denisbrodbeck / machineid

Get the unique machine id of any host (without admin privileges)
MIT License
1k stars 143 forks source link

support for cron on darwin os #12

Open DZariusz opened 4 years ago

DZariusz commented 4 years ago

When run under cron, machineID returns error:

exec: \"ioreg\": executable file not found in $PATH

This PR makes it will try again with absolute path instead of failing. I was able to figure out thanks to: crontab-doesnt-execute-ioreg-on-my-mac

dogancanbakir commented 1 year ago

Getting a similar issue when running cmd without abs path! Thanks for the fix.

@denisbrodbeck, Hey there, could you please merge this pull request? Thanks!