Attentipn Please!! Need A Perl script to read the UIDs from two text files having the details in the format as given in the file(lLDIF format)

2009-08-17 Thread Jyotishmaan Ray
Dear All, I have to read the uid from this file for each student entry, which is itself a LDIF file, and extract it in another file, in a serial order. Can you provide me the simplest way to do it. Thanks, Jyotishmaan Ray Moderator Of Spirituality-Paradise Group http://yahoogroups.com

Re: What is wrong with this script ??

2008-08-22 Thread Jyotishmaan Ray
Dear All, Thanks a lot for providing me the pointers. Now i could create the homedirectories of 420 students with explicit chown and chgrp privilgeses. The thing was that the groups didnt exist so was not accepted in the chown command. Now that i have solved my problem, Thanks a zillion!!!

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
te: Thursday, August 21, 2008, 9:08 PM Take some SYS Admin classes. Once you have completed the training, your questions should have answers. Wolf Jyotishmaan Ray <[EMAIL PROTECTED]> wrote: > > Dear Wolf > > It still has not solved my problem completely, > > The out

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
se it is not showing up?? Any pointers ??    --- On Thu, 8/21/08, Wolf <[EMAIL PROTECTED]> wrote: From: Wolf <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org Date: Thursday, August 21, 2008, 8:05 PM J

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
you so much everybody Three cheers!!     --- On Thu, 8/21/08, Wolf <[EMAIL PROTECTED]> wrote: From: Wolf <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org Date: Thursday, August 21, 2008, 8:05 PM Jyotishmaan

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
No it does nt work out as shown below:- [EMAIL PROTECTED] perl]# chown s08-1-5-095:s08-1-5-095 /root/perl/s08-1-5-095 chown: `s08-1-5-095:s08-1-5-095': invalid group [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-1-5-095 /root/perl/s08-1-5-095 [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
group.1) In this case the numeric value of the id is 503 and the numeric value of the group is 20.  Find your values for one of your users.  Then (as root) try this: cd /tmptouch foochown 503 foochgrp 20 fools -l foo (the 20 and 503 will be replaced with the numbers you have).  See if the ls sh

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
.1) In this case the numeric value of the id is 503 and the numeric value of the group is 20.  Find your values for one of your users.  Then (as root) try this: cd /tmptouch foochown 503 foochgrp 20 fools -l foo (the 20 and 503 will be replaced with the numbers you have).  See if the ls shows th

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
Give some pointers as such to sort out this problem in my cluster servers (fedora-linux) ?   --- On Thu, 8/21/08, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: From: Mr. Shawn H. Corey <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: "Perry Smith" <[EMAIL PROTECTED]> Cc: [

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
vironment and other stuff to authenticate with. Hope this helps... On Aug 20, 2008, at 2:10 PM, Jyotishmaan Ray wrote: All the users have been created through LIDF files format being imported to the central LDAP server in the setup. The hopme directories are being created for the students to work on

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
ers@perl.org Date: Wednesday, August 20, 2008, 6:00 PM 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 writt

Re: Perl Script Needed To Create The Home Drectories.

2008-08-20 Thread Jyotishmaan Ray
created a user by importing a ldif as shown  below: Plz go through this  file. However this file  is located at the LDAP server and the homedirectories are to created in the cluster server. dn: uid=s08-1-5-097,ou=student,dc=nits,dc=ac,dc=in uid: s08-1-5-097 cn:  s08-1-5-097 objectClass: account

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
ript ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org Date: Wednesday, August 20, 2008, 7:01 PM On Wed, 2008-08-20 at 06:11 -0700, Jyotishmaan Ray wrote: > Yes, a user uid has already been created in aLDAP server which does centralised authentication. > > And these home directories were

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
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 f

What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
l/$a" ); } close(PWD); ~   Thanks, Jyotishmaan Ray Moderator Of Paradise Groups http://yahoogroups.com/group/Spirituality-Paradise Are You Spiritually Aware  !!! Are You Enjoying Yourself  !!!  See What All You Had Been Missing Please Join Immediately By Sending A Blank Mail @  [EMAIL PROTECTED]    

create the home directories of 424 students in a server machine

2008-08-19 Thread Jyotishmaan Ray
Dear All, I am a new bie in perl. I have to create the home directories of 424 students in a server machine. The path of the home directory would be :- /mnt/btech/formatted-rollno. where formatted-rollno ="s08-1-5-097" And the input file contains all the rollnos of 424 students. A sampl

Re: Script neeed for creating home directories for each student!!

2008-08-19 Thread Jyotishmaan Ray
H,"/home/anadhikary/perl/sourcefile"); while() {     ($a,$b)=split(/\s+/,$_);      my $homedir = "/mnt/btech/$a";     `mkdir "$homedir"; chmod 700 "$homedir";` if(! -e $homedir);  }   close(FH);   On Tue, Aug 19, 2008 at 6:29 PM, Jyotishmaan Ray <[EMAIL PR

Script neeed for creating home directories for each student!!

2008-08-19 Thread Jyotishmaan Ray
ct: Re: Perl Script Needed Urgently.!! To: beginners@perl.org Date: Tuesday, August 19, 2008, 3:18 PM Hi Jyotishmaan Ray U can do the task in the following way but there may be some other good and compact way. The source file is the file where uid and user password are written but one thing in the s

Perl Script Needed Urgently.!!

2008-08-19 Thread Jyotishmaan Ray
Dear All, I am a new bie in perl. I have to generate LDIF files after reading a file containing a list of userids of a new admitted batch of a university along with their passwords, uidNUmber And gidNumber. Say the new batch contains 400 students, and the uidNumber starts from the number 2631 onw