#!/bin/sh if [ $# -ne 1 ]; then echo 'Usage: wrt-run applist' exit fi applist=$1 LOG=/tmp/webkit_memory for app in `cat $applist`; do echo -n $app aul_test launch $app pid=`pgrep $app` sleep 5 while true; do echo -n . if kill -0 $pid 2>/dev/null; then break fi sleep 1 done aul_test term_pid $pid sleep 1 echo if [ ! -f $LOG ]; then break fi done