Hello,
I've been using PackageMaker for the last few weeks and really like the tool.
Now I'd like my package installer to kill any existing process of that type.
I've tried scripting this as a pre-flight step but it doesn't seem to work as expected...
It runs fine when I execute it standalone from the command line.
Any ideas on why the script isin't working?
Or anyone any other suggestions on ways to kill processes from the installer?
Thanks
I've been using PackageMaker for the last few weeks and really like the tool.
Now I'd like my package installer to kill any existing process of that type.
I've tried scripting this as a pre-flight step but it doesn't seem to work as expected...
Code:
#!/bin/ksh
pid=`ps -e | egrep nameofmyapp | egrep -v egrep | awk '{print $1}`
kill -TERM ${pid}
exit 0
It runs fine when I execute it standalone from the command line.
Any ideas on why the script isin't working?
Or anyone any other suggestions on ways to kill processes from the installer?
Thanks