Please share with me a better method of identifying that a program is already running from that program.
My current thoughts are a system call to "ps aux | grep programname" but then what?