mirror of https://github.com/cutefishos/appmotor
parent
b240224f6e
commit
dd68e8af23
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
import os
|
||||||
|
import time
|
||||||
|
import commands
|
||||||
|
|
||||||
|
#Launching application from the script
|
||||||
|
os.system("/usr/share/applauncherd-testscripts/fala_sf.sh &")
|
||||||
|
|
||||||
|
time.sleep(2)
|
||||||
|
st, op = commands.getstatusoutput("pgrep fala_ft_hello")
|
||||||
|
|
||||||
|
#Killing application with a signal 11 (Segmentation Fault)
|
||||||
|
commands.getoutput("kill -11 %s" %op)
|
||||||
|
time.sleep(2)
|
||||||
|
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
invoker --type=m --wait-term /usr/bin/fala_ft_hello.launch
|
||||||
|
|
||||||
Loading…
Reference in New Issue