This pscnt function is to determine if any program name (and parameter) passed in is actually a running process.
If so, returns count of running instances.
I tried this code, but I get count as 2.
my $running = `. ~/.profil > /dev/null; pscnt $app_name $parameter`;
I am not sure if the code is correct. So, please help me to sort out this issue.