www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.4 required=5.0 tests=BAYES_00,FAKE_REPLY_C,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Date: | Fri, 16 Apr 2010 12:33:17 -0400 |
From: | DavidArnstein AT panix DOT com |
To: | cygwin AT cygwin DOT com |
Subject: | Re: scripting elevated privilege on Windows 7 |
Message-ID: | <20100416163317.GA27371@panix.com> |
MIME-Version: | 1.0 |
User-Agent: | Mutt/1.5.18 (2008-05-17) |
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 |
Thank you Robert Pendell! I wrote this shell script. Any suggestions for optimization? #!/bin/bash if [ $# -eq 1 ] then echo "Usage: elev program arg1 arg2 ..." exit 1 fi prog="$1" shift exec cygstart --action=runas `which "$prog"` "$@" -- 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 |