Forum Moderators: DixonJones
[phplivestats.com...]
Tommy G
netstat -na ¦ grep ^tcp ¦ wc -l
This can be simply incorporated into a Perl program:
# Get concurrent connections
open(FILE,"netstat -na ¦ grep ^tcp ¦ wc -l ¦");
$_ = <FILE>;
close(FILE);
print "STATUS:\n$_ users online\n";
Don't know if this is of any use to anyone, but I thought I'd share it <g>
Matt