Re: Running cmd as logged in user from admin script
Re: Running cmd as logged in user from admin script
- Subject: Re: Running cmd as logged in user from admin script
- From: Alexander Cohen <email@hidden>
- Date: Fri, 07 Mar 2008 10:41:51 -0500
Nice, thank you.
AC
On 7-Mar-08, at 10:37 AM, Fritz Anderson wrote:
On 7 Mar 2008, at 9:31 AM, Alexander Cohen wrote:
I have an installer that has a script that runs after the install.
The installer is run with admin privileges. From the script, i need
to run a cmd as the currently logged in user. Is there a way to do
that ?
su $USER -c "/path/to/command"
If it's an application:
su $USER -c "open /Applications/MyApplication.app"
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden