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

Script help


  • Subject: Script help
  • From: vishnu kulkarni <email@hidden>
  • Date: Tue, 12 Jun 2012 00:06:50 +0530

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

  • Follow-Ups:
    • Re: Script help
      • From: Bill Coderre <email@hidden>
    • Re: Script help
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: Issue: Hiding terminal on app launch
  • Next by Date: Re: Script help
  • Previous by thread: Re: Using SCP to copy pkg and trying to install the package remotely using SSH
  • Next by thread: Re: Script help
  • Index(es):
    • Date
    • Thread