I got the
mtr ping-traceroute combo util through Homebrew and I'd like to run on new Terminal windows without having to become superuser (or elevation, sudoing, whatever it's called on UNIX) each time first, or, if there's no way around it, have the program ask me for credentials on the spot like some commands do, e.g;
A while ago I got into the habit of creating [very simple] scripts, then added the scripts directory to
$PATH for simple tasks like, for instance, to flush the DNS cache I type anywhere
flushdns and it asks me for my creds if I wasn't elevated before because
sudo is in the script.
I thought about doing something similar to this but (1) I'd have to use another command since
mtr is already in the $PATH and, (2) I don't know how to work it with the arguments that the utility needs.
I'd appreciate any suggestions you have, or, a link to an existing question--I didn't find because because the elevation/superuser thing, I think. :/