On Aug 20, 2008, at 7:20 AM, Mr. Shawn H. Corey wrote:
On Wed, 2008-08-20 at 05:16 -0700, Jyotishmaan Ray wrote:
Dear All,
I have a input file containing all the rolnos of 400 studenst. I
have written a small perl script to create their home directories
in the cluster server.
everything worked fine except for the reason that, it shows up
error message indicating that the following messages for example:
when my input file rr.txt contains the following roll nos.:-
s08-1-5-095
s08-1-5-096
s08-1-5-097
the error messages displayed are :-
[EMAIL PROTECTED] perl]# perl h20.pl
chgrp: invalid group `s08-1-5-095'
chgrp: invalid group `s08-1-5-096'
chgrp: invalid group `s08-1-5-097'
You have to create a group before you can change a file to it. See
`man
5 group`.
You also are going to hit the same issue when you do chown. You have
to create a user too. Just creating a home directory is not at all
the same.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/