On Fri, Apr 16, 2010 at 12:33 PM wrote:
> 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 `whic
On 04/16/2010 11:37 AM, Eric Blake wrote:
> You are missing some quotes, and might as well use nicer quoting styles:
^^^
command substitution styles
>
> exec cygstart --action=runas "$(which "$prog") "$@"
And I'm missing quotes, too.
On 04/16/2010 10:33 AM, davidarnst...@panix.com wrote:
> 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"
In assignment, there is n
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
On Thu, Apr 15, 2010 at 9:43 PM wrote:
>
> I am dealing with Windows UAC for the first time. From a script, I would
> like to launch a process with elevated (administrative) privilege. I
> can accept that Windows will pop up a modal dialog box confirming the
> elevated privilege.
>
> Is there an ex
I am dealing with Windows UAC for the first time. From a script, I would
like to launch a process with elevated (administrative) privilege. I
can accept that Windows will pop up a modal dialog box confirming the
elevated privilege.
Is there an existing utility in Cygwin or elsewhere.
An example o
6 matches
Mail list logo