Both of those commands do the same thing. Here's what you'd have to do:
1. sudo chown root /media/m1/1263-A96E/oneBash
2. sudo chmod u+s /media/m1/1263-A96E/oneBash
3. sudo chmod o+x /media/m1/1263-A96E/oneBash
Now onebash is owned by root and executes with all of it's privs, and anyone on the system can execute the script. After doing that, you should be able to just delete the expect code that provides the password to elevate privs. The down side of this is that the miners now all run as root. To take care of that, chmod u+s to each mining program and make sure it is owned by the user m1 with chown m1
This approach allows you to keep one big script -
You should definitely confirm all of this. I'm in management now, and I'm not on the keyboard as much
That is what I thought; just wanted to make sure I understood what you where suggesting. I didn't know I had to change ownership with chown; I have never been a *nix system administrator. I have some linux and unix experience (about 9 years); but most of it was very specialized, and generally limited to networking.
I will add implementing your suggested changes and testing them out to the list of:
testing Asus - PRIME Z270-A mobo
improving amdOC beta
lan management monitor / push / update app
dynamically editing xorg.conf automatically
modify / test expectless version of oneBash
potentially if members want ( re-add ssd support )