- Joined
- Aug 19, 2009
- Messages
- 1
- Reaction score
- 0
- Points
- 1
- Your Mac's Specs
- imac 20'
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
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