Re: What is wrong with this script ??

2008-08-22 Thread Perry Smith
em 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: [EMAIL PROTECTED], beginners@p

Re: What is wrong with this script ??

2008-08-22 Thread Jyotishmaan Ray
!!! jmaan   --- 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: [EMAIL PROTECTED], beginners@perl.org Date: Thursday, Augu

Re: What is wrong with this script ??

2008-08-21 Thread Peter Scott
On Thu, 21 Aug 2008 08:35:28 -0700, Jyotishmaan Ray wrote: > > Let me try out till I received a reply from your end. > > At first what i did was manually created the a dir using > > mkdir s08-1-5-097 > > then > > i typed > > id  s08-1-5-097 > > And then typed the command:- > > chown 3053:3

Re: What is wrong with this script ??

2008-08-21 Thread Rob Dixon
Jyotishmaan Ray wrote: > > Wolf, that comes later, now i have to find out the solution of this problem. > Any pointers ?? This is not a Perl problem as has been said several times. Since you don't even have the courtesy to bottom-post your responses as requested I am not inclined to help you furt

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
Wolf, that comes later, now i have to find out the solution of this problem. 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 Da

Re: What is wrong with this script ??

2008-08-21 Thread Wolf
er. In bothe cases the uidNumber and gidNumber was used but then why > in the latter case it is not showing up?? > > > Any pointers ?? > > > > > > > > > > > > >    > > --- On Thu, 8/21/08, Wolf <[EMAIL PROTECTED]> wrote: > From: Wolf <[EMAIL PROTECTED]>

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 Wolf
Jyotishmaan Ray <[EMAIL PROTECTED]> wrote: > > 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/p

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
t;[EMAIL PROTECTED]> wrote: From: Wolf <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: beginners@perl.org, "Mr. Shawn H. Corey" <[EMAIL PROTECTED]>, "Perry Smith" <[EMAIL PROTECTED]> Date: Thursday, August 21, 20

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
Hello Perry, Thanks a lot for replying my mail again.   Please find the answers of your questions below one by one.     --- On Thu, 8/21/08, Perry Smith <[EMAIL PROTECTED]> wrote: From: Perry Smith <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL P

Re: What is wrong with this script ??

2008-08-21 Thread Wolf
try using: chown $id:$gid $dir so that it would be chown 3051:3051 /home/users/s01-5-097 (or whatever) HTH, Wolf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: What is wrong with this script ??

2008-08-21 Thread Jyotishmaan Ray
Hello Perry, Thanks a lot for replying my mail again.   Please find the answers of your questions below one by one.     --- On Thu, 8/21/08, Perry Smith <[EMAIL PROTECTED]> wrote: From: Perry Smith <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL P

Re: What is wrong with this script ??

2008-08-21 Thread Perry Smith
ownsership are not shown or changed by the commnds given in the script ? Whats wrong, do let me know ? Any pointers ?? --- On Wed, 8/20/08, Perry Smith <[EMAIL PROTECTED]> wrote: From: Perry Smith <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: "Mr. Shawn

Re: What is wrong with this script ??

2008-08-21 Thread Raymond Wan
Hi Jyotishmaan, Jyotishmaan Ray wrote: Give some pointers as such to sort out this problem in my cluster servers (fedora-linux) ? As a suggestion, it sounds to me that your problem is not related to Perl and perhaps you're asking the wrong mailing list. All Perl can do for you is take

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"

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
Please find the answers of your questions/ confusions that you raised, as embedded below     --- On Thu, 8/21/08, Perry Smith <[EMAIL PROTECTED]> wrote: From: Perry Smith <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: [EMAIL PROTECTED] Cc: "Mr. Shawn

Re: What is wrong with this script ??

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 17:25 -0500, Perry Smith wrote: > I would first verify that you can do what you need to do with one > individual directory from the shell. i.e. make sure you can chown, > chgrp, and chmod -- what ever other commands you are needing to do. On many *NIX systems, commands like

Re: What is wrong with this script ??

2008-08-20 Thread Rob Dixon
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 their asignements etc. > > The why the ownsership are not shown or changed by the c

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
? Whats wrong, do let me know ? Any pointers ??    --- On Wed, 8/20/08, Perry Smith <[EMAIL PROTECTED]> wrote: From: Perry Smith <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: "Mr. Shawn H. Corey" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], beginn

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
   `mkdir "$homedir"; chmod 700 "$homedir";` if(! -e $homedir); } close(FH); what could be wrong with the script ? --- On Wed, 8/20/08, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: From: Mr. Shawn H. Corey <[EMAIL PROTECTED]> Subject: Re: What is wrong with this sc

Re: What is wrong with this script ??

2008-08-20 Thread Mr. Shawn H. Corey
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 created on a clusetr server machine for > students to work out theur assignments etc. Then you have

Re: What is wrong with this script ??

2008-08-20 Thread Jyotishmaan Ray
Perry Smith <[EMAIL PROTECTED]> Subject: Re: What is wrong with this script ?? To: "Mr. Shawn H. Corey" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], beginners@perl.org Date: Wednesday, August 20, 2008, 6:00 PM On Aug 20, 2008, at 7:20 AM, Mr. Shawn H. Corey wrote: > On

Re: What is wrong with this script ??

2008-08-20 Thread Perry Smith
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

Re: What is wrong with this script ??

2008-08-20 Thread Mr. Shawn H. Corey
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 u

RE: What is wrong with this script ??

2008-08-20 Thread Andrew Curry
Depending on your server the error could be that the group doesn't exist i.e. on unix you would need to add the groups to /etc/group first. -Original Message- From: Jyotishmaan Ray [mailto:[EMAIL PROTECTED] Sent: 20 August 2008 13:17 To: beginners@perl.org Subject: What is wrong with th

Re: What is wrong with this file copy script

2006-03-12 Thread JupiterHost.Net
Hello Harry, hpdb cp'ing ./dir1/2765 => ./tmp/001 Failed to copy ./dir1/2765 => ./tmp/001: No such file or directory at ./renum2.pl line 111 I didn't want to read the entire script (a triffle busy ;p) but perhaps File::Copy::Recursive (IE dircopy()) will help. Then if the file na

Re: What is wrong with this file copy script

2006-03-12 Thread Shawn Corey
Harry Putnam wrote: #!/usr/local/bin/perl -w @directories = ("./dir1", "./dir2"); for(@directories) { opendir(WRK_DIR,"$_"); opendir(WRK_DIR,$_) or die "cannot opendir $_: $!\n"; chdir $_; chdir $_ or die "cannot chdir $_: $!\n"; # This fails for the second directory since it chdir to

Re: What is wrong with this file copy script

2006-03-12 Thread Shawn Corey
Harry Putnam wrote: That formula did'nt do it either but it did show a different error that throws some light on this. Notice the first file is the directory name hpdb cp'ing ./dir1 => tmp/001 Failed to copy ./dir1 => tmp/001: Is a directory at ./renum2.pl line 113 Thats why copy i

Re: What is wrong with this file copy script

2006-03-12 Thread Harry Putnam
Shawn Corey <[EMAIL PROTECTED]> writes: > When File::Find goes looking for files, it chdir's to each directory > its looking in. When it's in ./dir1, there is no ./dir1/tmp to copy > files into, so you get an error. Change your calling sequence of > find() to: > > find( { wanted => \&wanted, no_

Re: What is wrong with this file copy script

2006-03-12 Thread Harry Putnam
Shawn Corey <[EMAIL PROTECTED]> writes: > When File::Find goes looking for files, it chdir's to each directory > its looking in. When it's in ./dir1, there is no ./dir1/tmp to copy > files into, so you get an error. Change your calling sequence of > find() to: > > find( { wanted => \&wanted, no_

Re: What is wrong with this file copy script

2006-03-12 Thread Harry Putnam
> I'm already bald so don't have the luxury of pulling hair over this. [...] > $new = $tmpdir."/".$new; > $oldf = $File::Find::name; > print "hpdb cp\'ing $oldf => $new\n"; > copy($oldf, $new) > or die "Failed to copy $oldf => $new: $!"; > } I figured out the sour

Re: What is wrong with this file copy script

2006-03-12 Thread Shawn Corey
Harry Putnam wrote: I'm already bald so don't have the luxury of pulling hair over this. I don't understand the error ouput or maybe I could get somewhere with this. Pouring over perldoc File::Copy isn't helping either... I think the error is before that but can't see what. The end result of

RE: What is wrong with this?

2002-01-22 Thread John Edwards
"errors out via the web" What error message do you get? Is there anything in the Apache error logs that's relevant? Does the web server account have write access to the ipaccess.log file? John -Original Message- From: Michael Pratt [mailto:[EMAIL PROTECTED]] Sent: 22 January 2002 11:44

Re: what is wrong with this simple format?

2001-09-14 Thread Alexander Bjelke
hmmm, I have testet the script on a machine with perl 5.6 and there it worked. Is the format definitions different in perl 4? Alexander -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: what is wrong with this simple format?

2001-09-14 Thread pconnolly
As it is, it should work. The error is not always on the line that it is complaining about. Syntax errors such as missing " of ) or } etc. will cause perl to report errors further down the script. Did you check the rest of the script? Or, if you want to send your script we can look at it. |-