#!/usr/bin/env python import os import time import commands #Launching application from the script os.system("/usr/share/applauncherd-testscripts/signal-forward/fala_sf_m.sh &") time.sleep(2) st, op = commands.getstatusoutput("pgrep -lf 'invoker --test-mode --type=m --wait-term /usr/bin/fala_ft_hello'") op = op.split("\n")[0].split(" ")[0] #Killing application with a signal 11 (Segmentation Fault) commands.getoutput("kill -11 %s" %op) time.sleep(2)