Hello.
Shell commands for running process:
while it is running, ps command will give you all current running processes.
if you know the process name (even partial),
you can execute
# Shell script file begin
#!/bin/sh
PID=`ps -o pid | grep "THE PROCESS NAME"`
echo $PID
and this script will print the pid of the given process
OR you can check for return value (e.g. like DOS errorlevel if you know of).
something like:
ps | grep -i tasker & if [ "$?" == "0" ] then; echo "OK"; else echo "ERROR"
Hope this helps someone...