View Single Post
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#17
Win7Mac,

Are you sure that's the process name?

Get your process name and the below is something you can use; in the below example PROCESS_NAME should be replaced with your process name:

Code:
SERVICE=PROCESS_NAME

if ps -ae | grep -v grep | grep "$SERVICE" > /dev/null
then
        kill `pgrep -f "$SERVICE"`
        dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Standby Screen Off" string:'' string:'' uint32:0
else
        "$SERVICE" &
        dbus-send --print-reply --dest=com.meego.core.MNotificationManager/notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"Standby Screen On" string:'' string:'' uint32:0

fi

Last edited by thedead1440; 2012-12-30 at 15:33. Reason: typo
 

The Following User Says Thank You to thedead1440 For This Useful Post: