MacPorts shell mode

-dan d. dandunfee at gmail.com
Thu Oct 19 16:25:17 UTC 2017


I make an "mp" alias of the below which allows doing a port command without
repeated sudo inputs.  In effect it puts your pasword into sudo for you:

echo your-password | /usr/bin/sudo -S port $1 $2 $3 $4 $5



On Thu, 19 Oct 2017, pagani laurent via macports-users wrote:

> Hi all,
>
> Reading the mails on this list, I discovered the Shell mode option (sudo port without argument) which would allow in principle to launch several commands without repeating sudo port each time (and typing the passwd). But once in that mode, I typed selfupdate and was exited from the the mode after completion! Could not run upgrade outdated in the wake? In that case, what?s the use of such a shell mode ?
>
> Thanks,
> Laurent
>
> "S'il n'y a pas de solution, c'est qu'il n'y a pas de probl?me" (devise Shadok)
>
>

XB


More information about the macports-users mailing list