• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Packages with Shell script fails while installing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packages with Shell script fails while installing.


  • Subject: Re: Packages with Shell script fails while installing.
  • From: Greg Neagle <email@hidden>
  • Date: Thu, 05 Jul 2012 11:34:58 -0700

Sometimes the executable is "firefox", sometimes it is "firefox-bin", depending on the version running.

/usr/bin/killall firefox
/usr/bin/killall firefox-bin

Should do it, or you could use the -m option and build a regex expression.

-Greg

On Jul 5, 2012, at 10:01 AM, vishnu kulkarni wrote:

> Hi ,
>
> /usr/bin/killall Firefox command does not work efficiently on all the
> Mac's. If i include this in script, I doubt it actually kills the app.
>
>
> Thanks,
>
> Vishnu
>
>
> --
> Hi ,
>>
>> I have used Packages from Sudre. I'm little bit confused here, I have
>> built firefox package using the (HW/SW) Checks within the packages.
>> I'm running into problem when I use *Result of external Script*
>> Installation fails. The script includes condition to find and kill
>> Firefox if it's running and next condition is to remove Firefox.app
>> from Applications folder before installing. However when I include
>> only one condition ( Either of them, to kill or to remove)  package
>> works perfectly without any errors. Where Am I going wrong? Kindly
>> suggest. I have pasted the Script which I have used.
>> #!/bin/sh
>>
>> ps -ef | awk '/Firefox/ && !/awk/ {print $2}'|xargs kill -9
>>
>> /bin/rm -rf /Applications/Firefox.app
>
> It's the ps-ef... line that can exit incorrectly. For instance when
> there's no Firefox process running.
>
> #!/bin/sh
>
> /usr/bin/killall Firefox
>
> /bin/rm -rf /Applications/Firefox.app
>
> exit 0
>
> seems to work fine.
>
> Side note: I'm not a big fan of killing and removing files in the
> Installation Check requirements though because if the installation is
> not run, then you have lost your Firefox application instance. I would
> rather do that in the pre-installation script.
> _______________________________________________
> _______________________________________________
> 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


 _______________________________________________
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

References: 
 >Re: Packages with Shell script fails while installing. (From: vishnu kulkarni <email@hidden>)

  • Prev by Date: Re: Packages with Shell script fails while installing.
  • Next by Date: Resizable installer window
  • Previous by thread: Re: Packages with Shell script fails while installing.
  • Next by thread: Localized resources not being picked for some language during installation
  • Index(es):
    • Date
    • Thread