Need simple bash script help
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. Code:
#!/bin/sh |
How about something like the following instead of your pgrep line:
Code:
ps -ef | grep ivman | grep $USER | cut -f3 |
All times are GMT -5. The time now is 02:28 AM. |