Thanks, works like a treat, might be a long shot but I'm trying to return this to a C++ program, for instance...
Code:
int i = system("pgrep -f 'java -jar /servers/minecraft.jar nogui'");
it just returns 0 though, is there another function I can use as an alternative to system().
Thanks