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
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
2 matches
Mail list logo