Re: How to test to see if a program is running?
Re: How to test to see if a program is running?
- Subject: Re: How to test to see if a program is running?
- From: Bill Coderre <email@hidden>
- Date: Fri, 05 Mar 2010 09:16:52 -0800
On Mar 5, 2010, at 8:50 AM, Alexander von Below wrote:
> http://developer.apple.com/mac/library/qa/qa2001/qa1123.html
>
> Am 05.03.2010 um 17:49 schrieb Allan Marcus:
>>
>> I'm trying to build an installer for FireFox that I can push out with puppet. The installer will be run from the command line (silent install).
>>
>> The issue is that if FireFox is running, bad things can happen if the installer runs. Is there a way (and how) to check to see if FireFox is running and stop the install if it is?
>>
>> Some way to incorporate
>> ps -efc | grep -i FireFox
If you are using distribution-based packages (and you almost certainly should be), the Installer JavaScript Reference has some good stuff for you:
http://developer.apple.com/mac/library/documentation/DeveloperTools/Reference/InstallerJavaScriptRef/applications/applications.html#//apple_ref/doc/uid/TP40005137-CH101-SW1
_______________________________________________
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