Results 1 to 2 of 2
  1. #1
    PackageMaker PreFlight question

    Member Since
    Aug 19, 2009
    Posts
    1
    Specs:
    imac 20'
    PackageMaker PreFlight question
    Hello,

    I have a very small script that I want to run as a pre-flight step in packagemaker.... its used to kill a specific process.


    #!/bin/ksh
    pid=`ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $1}`
    kill -TERM ${pid}


    When I do "Build and Run" it throws the message "Install Failed". By trial and error I've figured out that it does not like the kill line. Running the script standalone in a terminal works perfectly. Anyone have any ideas whats going on here, I'm puzzled.

    Thanks,
    Jonathan

  2. #2
    PackageMaker PreFlight question
    jobyabraham1983's Avatar
    Member Since
    Sep 18, 2009
    Location
    India
    Posts
    2
    Hi hello,

    I am not sure but i think `ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $1}' won't return process id it will return user name so can you just try with pid=`ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $2}` instead of your particular command

    Thanks you
    JA For Mac/iPhone

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with packagemaker
    By kmansfie in forum OS X - Operating System
    Replies: 1
    Last Post: 12-30-2010, 06:25 AM
  2. won't run preflight scripts
    By landshrk in forum OS X - Operating System
    Replies: 0
    Last Post: 02-24-2010, 05:08 PM
  3. PackageMaker 3.0.4
    By charlesevans in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 10-16-2009, 03:39 PM
  4. Help with PackageMaker needed
    By Tiemo in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 02-12-2009, 08:27 AM
  5. Installing PackageMaker
    By paramasivan in forum OS X - Apps and Games
    Replies: 4
    Last Post: 04-17-2008, 11:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •