• 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: Script help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script help


  • Subject: Re: Script help
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 11 Jun 2012 12:29:41 -0700

It's not right yet because the capitalization of Firefox is incorrect.
On a case sensitive filesystem this will not work.

Also it's preferable  to use absolute paths for the command line tools
you invoke.

Finally, removing a version of an application you are about to install
is not necessarily a good idea. This may lead to unexpected results.

On Mon, Jun 11, 2012 at 11:36 AM, vishnu kulkarni <email@hidden> wrote:
> Hi All,
>
> I'm pretty new to scripting. I have written a script to be included as
> preflight script while packaging Firefox App. I have used the below
> script to Kill the app before it installs and to remove the app before
> installing the App. Can some one please validate the Script if it's
> right? Script works fine with the package.
>
> #!/bin/sh
> ps -ef | awk '/firefox/ && !/awk/ {print $2}'|xargs kill -9
>
> rm -rf /Applications/firefox.app
>
>
> Thanks,
>
> Vishnu
>  _______________________________________________
> 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: 
 >Script help (From: vishnu kulkarni <email@hidden>)

  • Prev by Date: Script help
  • Next by Date: Re: Script help
  • Previous by thread: Script help
  • Next by thread: Re: Script help
  • Index(es):
    • Date
    • Thread