0
I am trying to run a linux script on my Windows machine using cygwin.
I have already read and tried the solutions from There's no 'sudo' command in Cygwin, without any success.
I have a script that uses sudo in the regular linux environment. but when I run the scirpt on cygwin, it throws this error message:
project_common.sh: line 604: sudo: command not found
I know cygwin does not have sudo, and the referenced question mentioned earlier said to use:
>#!/usr/bin/bash
>"$@"
I tried executing that command before running the script. and also embedding the command into the script. Neither one help. So not sure what am I missing.
Thats not really the right answer. It is almost like saying, there is no copy command in Microsoft Office, Let rewrite MS Office. – Churk – 2012-06-04T14:08:29.427
1No, it's like saying given operating system A and B, and capability C which works one way under A and a different way under B, that your script which can be run under A and B might need to be rewritten to account for the differences in implementation of C. – LawrenceC – 2012-06-04T14:14:22.180
1
sudo
isn't in cygwin because you essentially are the superuser of the shell when you "Run [cygwin] as Administrator". In other words, your problem is not with cygwin, it's with your file permissions in Windows. – kevlar1818 – 2012-06-04T14:45:32.297