I'm working on an installer that uses a postflight script to do a couple things
to the application and helper applications we use. right now my script does
something like this
proc_count=`ps -ec | grep foo | wc -l | sed 's/ //g'`
while [ $proc_count -gt 0 ] ; do
echo "waiting for foo to close ..."
sleep 1
proc_count=`ps
-ec | grep foo | wc -l | sed 's/ //g'`
done
This works fine on 10.6, but when the Installer is run on 10.5 ps -ec returns
only the applications started in the current shell. i.e. it get's this
PID TTY TIME CMD
Oct 11 15:55:24 xxx runner[6672]: postflight[6753]: 4015 ttys000 0:00.02
login
Oct 11 15:55:24 xxx runner[6672]: postflight[6753]: 4016 ttys000 0:00.20
-bash
Oct 11 15:55:24 xxx runner[6672]: postflight[6753]: 6669 ttys000 0:00.56
installer
Is there anything I can do on 10.5 to get this to work??
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (
_______________________________________________
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