• 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: Using Sudo comand to delete App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Sudo comand to delete App


  • Subject: Re: Using Sudo comand to delete App
  • From: Stephane Sudre <email@hidden>
  • Date: Fri, 01 Jun 2012 17:03:58 -0700

On Fri, Jun 1, 2012 at 8:35 AM, vishnu kulkarni <email@hidden> wrote:
> Hi,
>
> We are using Sudo command in Script to trash the app before installing
> the new one. However I believe Sudo command needs admin password to
> proceed further. The Script which is being used has 2 criteria
> 1) To kill the app if it's running.
> 2) To trash the app from applications and then go ahead with the installation.
>
> To trash the app we are using Sudo Rm- R and full path of the app. Is
> it advisible to use Sudo command inside the script? Any other
> alternatives to trash the app before installing the new one using
> script?

In addition to Greg's answer, it is a good idea to use absolute path
to command line tool in these scripts. So if you use rm -r, use
/bin/rm -r instead.
 _______________________________________________
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:
    • productsign for flat distribution with x-disc package references (for multi dvd installer)
      • From: Paul Grathwohl <email@hidden>
References: 
 >Using Sudo comand to delete App (From: vishnu kulkarni <email@hidden>)

  • Prev by Date: Re: Using Sudo comand to delete App
  • Next by Date: Re: Installer-dev Digest, Vol 94, Issue 1
  • Previous by thread: Re: Using Sudo comand to delete App
  • Next by thread: productsign for flat distribution with x-disc package references (for multi dvd installer)
  • Index(es):
    • Date
    • Thread