Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I want to generate a report for all the users working in the office displaying the server & the no. of users home partitions hosted on a particular server.For that, i need to connect to each server ( using rsh <servername> ). Then go to a particular directory & count the no. of words of the output of "ls command" ( which will be the no. of users on that server). for this i'm using the following perl program but i'm not able to connect to the servers using "rsh" command in perl. can anyone please help me with that. The problem is to write a perl code, such that, using a foreach loop, i can log on to each server (one-by-one), then reach a particular directory on that server, execute a commnad to count the no. of users on that. Please reply me on Thanks, Sethji