Calling executable generated by dub with sudo

Selim Ozel sozel at wpi.edu
Mon Dec 7 20:34:36 UTC 2020


Let's say I build my package using dub run from an Ubuntu 
terminal. How can I add sudo as the executable is being run? I 
tried adding preRunCommands to my dub.sdl as described in [1] but 
that just runs sudo and terminal throws an error.

Best,
Selim

[1] https://dub.pm/package-format-sdl


More information about the Digitalmars-d-learn mailing list