./install.sh: line N: sudo: command not found
What's the standard way for getting around this? Editing the scripts to remove
sudo? Getting some
sudo-like tool for Windows?
migrated from stackoverflow.com Mar 21 '10 at 17:54
This question came from our site for professional and enthusiast programmers.
One way is to create a fake "sudo" command with the following content:
This will allow the
This doesn't elevate privileges like real sudo does. If you really need elevated privileges start cygwin shell with from an account with administrative privileges (XP) or r-click on cygwin.bat and "run as administrator" (Vista,Win7)
I found the answer on the cygwin mailing list. To run
This will open a Windows dialogue box asking for the Admin password and run the command if the proper password is entered.
This is easily scripted, so long as
Tested on 64-bit Windows 8.
Sudo (Elevate) for Windows™
I do a lot of work on the command line in Windows™.
In Cygwin itself I believe you can run a root command with
Now I cannot remember where we got this code but here it is. I hope it helps.
BTW, the package we use to compile this was
Installation is as simple as copying the four
The results: you type a single