• 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
shell command inside InstallationCheck script not working while run with installer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shell command inside InstallationCheck script not working while run with installer


  • Subject: shell command inside InstallationCheck script not working while run with installer
  • From: "Manish Chaturvedi" <email@hidden>
  • Date: Thu, 26 Jul 2007 13:12:54 +0530

Hi all,

            I am using packageMaker for installing my application. Before starting installation I need to verify whether application is currently running at user’s machine or not, if YES then stop installation.

Inside InstallationCheck script which is a Perl script I have called a shell command to check for running status of my application.

The part of script is like this:

 

$output = `ps aux | awk '/MyAPP/ && !/awk/ {print $2}'`;

      if($output)

    {

            $EXIT_VALUE = (113);

            last;

    }

 

This particular scripts runs properly when executed from command line but while it runs with installer no output comes for this part of script whereas other part of script like os version check run properly with installer.

 

What may be the reason that script segment is not working with installer?

Does it has something to do with super user or current user privileges?

How to solve it?

Please help me.

 

Thanks,

Manish

 

 _______________________________________________
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

  • Prev by Date: Re: Permissions weirdness
  • Next by Date: Determine user dir from postinstall while root
  • Previous by thread: Re: Permissions weirdness
  • Next by thread: Determine user dir from postinstall while root
  • Index(es):
    • Date
    • Thread