| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-0.9 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,T_RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4BE4AA62.5070302@alice.it> |
| Date: | Sat, 08 May 2010 02:03:46 +0200 |
| From: | Angelo Graziosi <angelo DOT graziosi AT alice DOT it> |
| User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 |
| MIME-Version: | 1.0 |
| To: | cygwin <cygwin AT cygwin DOT com> |
| Subject: | Re: Text editor with shell integration |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Luc Hermitte wrote:
> Hello,
>
> "lood" <HIDDEN please!> wrote :
Please, read this: http://cygwin.com/acronyms/#PCYMTNQREAIYR
> I have written cyg-wrapper.sh to answer this need.
> http://hermitte.free.fr/cygwin/#Win32
Very interesting! (That script should be added to Cygwin, as new package
or to cygutils...)
Suppose I want a wrapper for:
runas.exe /user:pippo C:\cygwin\Cygwin.bat
to be started as
$ sudos su
I have tried this (in .bashrc):
=====================
SU_ARG="/Cygwin.bat"
sudos() {
opt=''
if [ `expr "$*" : 'su\>'` -gt 0 ] ; then
opt+="`cygpath -p -w "$SU_ARG"`"
fi
cyg-wrapper.sh "/cygdrive/c/WINDOWS/system32/runas.exe" \
--slashed-opt --binary-opt=-user:pippo $opt
}
=================================
but... it does not work :(
What I am missing!?
Thanks,
Angelo.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |