I need ivman to run once as user 'ivman' on boot (no problem) and once as $USER on login so a test is required for an already running ivman as $USER. In case you log out and then back in we do not want 2 instances of ivman running as $USER
I'm getting closer but still no workie. Any help would be great. Ultimately the script would test for $CURRENTLY_LOGGED_IN_USER but it's not critical. I can figure that out later. Thanks.
id=`pgrep -U glenn ivman`
if [ '$id' -eq '0' ]